There is no permission named *.create,update,view
for guard web
.
#1927
Replies: 4 comments
-
Do I need to specifically create permission like below?:
It seems to work but I thought It will automatically work by just defining the pattern. |
Beta Was this translation helpful? Give feedback.
-
Yes, you have to create the permission as the documentation says |
Beta Was this translation helpful? Give feedback.
-
Thank you. Wouldn't it be nice to define permissions like below:
and then this should/could work out of the box:
OR
OR
OR any other combination works out of the box. |
Beta Was this translation helpful? Give feedback.
-
If it seems like a good idea, you could do the PR, because no one else will |
Beta Was this translation helpful? Give feedback.
-
After enabling:
'enable_wildcard_permission' => true,
I created some permissions:
Then created role:
$subscriber = Role::create(['name' => 'subscriber']);
Then tried assigning subpath permissions to role:
$subscriber->givePermissionTo('*.create,update,view');
but it throws the following Exception:
There is no permission named
*.create,update,view
for guardweb
.It throws the same Exception for user as well:
There is no permission named
*.create,update,view
for guardweb
.Beta Was this translation helpful? Give feedback.
All reactions