@@ -26,11 +26,6 @@ private function getPermissionService(): PermissionServiceManager
2626
2727 public function loadPermissions ()
2828 {
29- // return array_merge(
30- // $this->loadUserPermissions(),
31- // $this->loadGroupPermissions()
32- // );
33-
3429 // Use the new optimized service
3530 return $ this ->getPermissionService ()->getUserPermissions ($ this ->id );
3631 }
@@ -92,36 +87,10 @@ public function loadPermissionOfGroups(Group $group, array $permissions = [], ar
9287
9388 public function hasPermission ($ permissionString )
9489 {
95- // $permissionStrings = $this->loadPermissions();
96- // return in_array($permissionString, $permissionStrings);
9790 // Use the new optimized service for permission checking
9891 return $ this ->getPermissionService ()->userHasPermission ($ this ->id , $ permissionString );
9992 }
10093
101- /**
102- * Check if user has any of the given permissions
103- */
104- // public function hasAnyPermission(array $permissions): bool
105- // {
106- // return $this->getPermissionService()->userHasAnyPermission($this->id, $permissions);
107- // }
108-
109- /**
110- * Check if user has all of the given permissions
111- */
112- // public function hasAllPermissions(array $permissions): bool
113- // {
114- // return $this->getPermissionService()->userHasAllPermissions($this->id, $permissions);
115- // }
116-
117- /**
118- * Warm up permission cache for this user
119- */
120- // public function warmUpPermissionCache(): void
121- // {
122- // $this->getPermissionService()->warmUpUserCache($this->id);
123- // }
124-
12594 /**
12695 * Invalidate permission cache for this user
12796 */
0 commit comments