Difference between production and local environments #2887
lypolicylead
started this conversation in
General
Replies: 1 comment
-
|
This package makes no distinction between environments. Here is the documentation on working with multiple guards (or restricting to only one guard for the entire application): |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have permission
use-packagehave role 'admin' with
webguard_namethe permission is assigned to the role
my user has role
adminso, the user has the permission through the role
there is difference of working $user->can('use-package') between local and production environments:
production:
use-packagepermission with guard_nameweb-- authorize user for both guardsweb+apiuse-packagepermission with guard_nameapi-- authorize for only guardapilocal:
use-packagepermission with guard_nameweb-- don't authorize bothwebnorapiuse-packagepermission with guard_nameapi-- authorize user for both guardsweb+apiI just trying to don't duplicate the permission per guard and going to use only one for both guards
Beta Was this translation helpful? Give feedback.
All reactions