laravel-acl
laravel-acl copied to clipboard
Permission with empty slug
trafficstars
- Get a user
- Add new permission, e.g. update.user
- Remove permission update.user
Actual: permission "user" with empty slug Expect: remove whole permission, as we have for role's permission
@nglelinh
$user->removePermission('view.user') will remove the view.user permission.
$user->removePermission('user') will remove the whole user alias permission.
Is it not like that? Last i checked it was working.
@kodeine: yes, it works as you say. But I mean that, after removing last permission in an alias (empty slug), the whole alias should be automatically deleted as well. We have the same behavior with role permissions as well.