Super Admin "rule" is misleading. #2711
Replies: 1 comment 2 replies
-
If you create a role, and want that role to be "super", then you simply have to define the logic that "makes" it "super". If you wish to skip Laravel's way of checking permissions, and very specifically use only this package's |
Beta Was this translation helpful? Give feedback.
-
Hello.
Documentation: https://spatie.be/index.php/docs/laravel-permission/v6/basic-usage/super-admin
Anyone reading this understands it simply - "super" is super. And "super" is access to everything. No exceptions. No extra hassle, as it should be. But it is not!
"auth()->user()->hasAnyPermission(['myPermission'])" return false for user with "super" role. It shouldn't be like that. Why is it necessary to make additional checks in the code separately for "super"? Where is the logic hidden here? I don't see it.
Please, either supplement the documentation and correctly indicate that it is not "super" and how to solve this problem, or, much more correctly, actually make "super" super, as it should be.
p.s.
As I see, I'm not the only one who perceives it this way after searching on google. And this problem has been relevant for several years. But there is no additional documentation, nor has "super" become a real super administrator. Please explain in the documentation why you follow such a policy for the role that must be able to reach everything. Whose goal is to reach everything.
Beta Was this translation helpful? Give feedback.
All reactions