-
Notifications
You must be signed in to change notification settings - Fork 810
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
what diffrent between Gate and hasTeamPermission? #278
Comments
Hi there, Thanks for reporting but it looks like this is a question which can be asked on a support channel. Please only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use functionality provided by this repo you can try one of the following channels: However, this issue will not be locked and everyone is still free to discuss solutions to your problem! Thanks. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description:
what diffrent between Gate::check('add_team_member', Team::find(1)) and User::find(1)->hasTeamPermission('add_team_member', Team::find(1))
because in blade i use Gate::check('add_team_member', Team::find(1)) it show false, but use User::find(1)->hasTeamPermission('add_team_member', Team::find(1)) it show true
and try inside
php artisan tinker
alsoBelow is my JetstreamServiceProvider
below is my teams table:
below is my users table:
below is my tinker result:
Steps To Reproduce:
edit JetstreamServiceProvider
edit app/Actions/Fortify/CreateNewUser.php
php artisan optimize
composer dumpautoload
php artisan migrate:reset (and re create new user and teams with owner)
register new user
than go to Edit Team Settings
and this is my Team Settings Page
cant delete, add team member there.
The text was updated successfully, but these errors were encountered: