You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Database Driver & Version: mysql Ver 14.14 Distrib 5.7.29, for osx10.15
Stack: Inertia
Description:
I wanted to limit the creation of teams, for example only when the user has an active subscription. But, when returning false from App\Policies\TeamPolicy->create all pages respond with a 403 when the user is logged in.
Steps To Reproduce:
Create a new Laravel + Jetstream project using laravel new saas --jet --stack=inertia --teams
Change the return statement in App\Policies\TeamPolicy->create to false.
Refresh the dashboard or navigate to another page, now a 403 error will be shown
The text was updated successfully, but these errors were encountered:
RobertBoes
changed the title
Returning false from ThemePolicy->create causes 403 error on all pages when user is logged in
Returning false from TeamPolicy->create causes 403 error on all pages when user is logged in
Sep 10, 2020
Description:
I wanted to limit the creation of teams, for example only when the user has an active subscription. But, when returning false from
App\Policies\TeamPolicy->create
all pages respond with a 403 when the user is logged in.Steps To Reproduce:
laravel new saas --jet --stack=inertia --teams
.env
App\Policies\TeamPolicy->create
to false.The text was updated successfully, but these errors were encountered: