Loading...
 

History: Permission Management

Preview of version: 1

A profile would not be very useful if it could not grant rights appropriately for groups. Profiles allow to create groups and to modify the permissions of existing groups using a unified syntax.

The permissions block is a top level block.

Note: This is only at proposal stage at this time.

Permission block structure sample
preferences: ... permissions: Anonymous: allow: [ export_wiki ] Registered: description: Will be ignored because group is already created allow: [ edit, tiki_p_minor ] deny: [ export_wiki ] Moderators: description: Trusted users watching the recent changes to avoid spam allow: [ rollback ] objects: - type: forum id: $moderator_discussion_forum allow: [ forun_post, forum_post_topic, forum_read ] objects: ...


As you can see, the tiki_p_ prefix was removed from the permission names to reduce the length and increase readability. Permissions can be set to specific objects as long as the ID is known or it was also created by a profile. The object type does not have to be supported by TikiProfiles, but a static ID will have to be provided.

Internally, Tikiwiki stores the objectId as a hash of the type and the actual object ID. TikiProfiles uses the actual object ID as a reference. The hashing will be performed automatically.

History

Advanced
Information Version
Mon 09 of Jun, 2008 13:52 GMT-0000 System Administrator 2
Mon 09 of Jun, 2008 13:50 GMT-0000 System Administrator 1
  • 1
  • 2 (current)
  • »