Changes between Version 7 and Version 8 of doc/developer/UserRolesArchitecture

Show
Ignore:
Timestamp:
06/13/07 22:11:11 (11 years ago)
Author:
benoitg
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • doc/developer/UserRolesArchitecture

    v7 v8  
    7676Internal implementation, and corner cases (gateway interaction maybe) 
    7777{{{ 
    78 Security::hasPermission($permission, $target_object, $user);  //user is optional, if unspecified, the current user is used.  User can also be null, meaning that there is no user currently logged-in 
    79 Security::hasEitherPermissions(array $permission, $target_object, $user); 
    80 Security::hasAllPermissions(array $permission, $target_object, $user); 
     78Security::hasPermission($permission, $targetObject, $user);  //user is optional, if unspecified, the current user is used.  User can also be null, meaning that there is no user currently logged-in 
     79Security::hasRole($role, $targetObject, $user);  //user is optional, if unspecified, the current user is used.  User can also be null, meaning that there is no user currently logged-in 
     80Security::hasEitherPermissions(array $permission, $targetObject, $user); 
     81Security::hasAllPermissions(array $permission, $targetObject, $user); 
    8182}}} 
    8283 
    8384Mostly for reporting 
    8485{{{ 
    85 Security::getUsersWithPermission($permission, $target_object); //Return list of users with this permission 
    86 Security::getUsersWithRole($role, $object_id); //Return an array of users with the given role.  If objects_id is null, all users with the specific role are returned, along with an array of objects for which they have this role.  Maybe this function won't actually be implemented, as it's there mostly for reporting and sending notification of hotspots going down. 
     86Security::getUsersWithPermission($permission, $targetObject); //Return list of users with this permission 
     87Security::getUsersWithRole($role, $objectId); //Return an array of users with the given role.  If objects_id is null, all users with the specific role are returned, along with an array of objects for which they have this role.  Maybe this function won't actually be implemented, as it's there mostly for reporting and sending notification of hotspots going down. 
    8788Security::getPermissions($user);  //returns array of PERMISSION constants for this user. 
    8889}}}