Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Roles

[roles]

0 = noRights

1 = basic

5 = editor

6 = pm

7 = admin

8 = api

The available roles in the application are defined through the used roles in the ACL table.

Beside of ACL table and the right system in some circumstances the users roles are directly checked for the roles a user have.
For that reason for each available role a PHP constant is set: ACL_ROLE_ROLENAME

Code Block
languagephp
titlePHP ACL role constant example:
echo ACL_ROLE_PM;
//prints: pm

By default this roles are available:

noRights, basic, editor, pm, admin, api 

ACL resources

ResourceDescripion
frontendresource for general frontend rights
loadAllTaskswith this resource the role is able to see all tasks (should be converted to a right in the resource backend)
adminUserFrontendControllergiving a role this resource, enables the admin GUI (should be converted to a right in the resource backend)
headPanelFrontendControllergiving a role this resource, enables the head panel (should be converted to a right in the resource backend)
userPrefFrontendControllergiving a role this resource, enables user specific settings (should be converted to a right in the resource backend)
taskOverviewFrontendControllergiving a role this resource, enables the task overview (should be converted to a right in the resource backend)
editAllTaskswith this resource, the user can edit a task without beeing associated with it. Frontend Right editorEditAllTasks is also required (should be converted to a right in the resource backend)
getUpdateNotificationwith this resource the user gets a notice if a new translate5 version is available (should be converted to a right in the resource backend)
readAuthHashwith this resource the user is able to see the authHashes in the TaskUserAssoc entity (API usage) (should be converted to a right in the resource backend)
backendresource for general backend rights
setaclroleresource for define if the user can set/change acl role

...