-
if I remove a permission from the role, the entry still exists in model_has_permissions. Is there a way that these can all be synced or will I have to do it manually? example - user 1 has role 1 with permission 1, I remove permission 1 from role 1 but user 1 is still left with permission 1 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
role permision is handled by laravel-permission/config/permission.php Line 71 in fc841f8 Maybe, after deleted you forget |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
role permision is handled by
role_has_permissions
, if you remove a permission from the role, the data on that table get deleted, not onmodel_has_permissions
laravel-permission/config/permission.php
Line 71 in fc841f8
Maybe, after deleted you forget
$this->forgetCachedPermissions();
for cache refresh