Category Permissions Specifications | |
To assign permissions to a category, go to tiki-admin_categories.php and click the appropriate key icon, which will send you to tiki-categpermissions.php. tiki-categpermissions looks and works very much like tiki-pagepermissions.php. The current category permission system follows the following rules.
Examples:
Note: Below is an older proposal of how category permissions should be implemented. The actual implementation described above is a bit different. HOWTO: Assign permissions to all objects of a specified category
After a time looking at so nice program like Tikiwiki is I started looking how could I 'group' objects permissions. I explain, my intention has been to be able to assign the same permissions to a couple of objects with minimun effort, the nearest thing to that target are Categories, that's the easiest way to group objects inside Tikiwiki but there's no way to apply permissions to Categories so... Here comes the nice things. The only way you can assign the same permissions to a couple of objects is from direct SQL queries. Assume we have a Category defined in our Tikiwiki called 'PrivateElements' with a couple of wiki pages on it.
Well, it's possible, after a few looks onto tiki's sources and the database I wrote that query: Copy to clipboard
What does this do? This simply searches for all 'wiki page' objects that are into category 'PrivateElements' and inserts a new registry into users_objectpermissions table for group 'Registered', permission 'tiki_p_view' for every object found. You can easylly adapt that query to your own needs, only change the following: 'Registered' by the group you wish to apply permissions
Just hope that this helps somebody! Marc Fargas. |