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.
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:
INSERT IGNORE INTO `users_objectpermissions` (groupName, permName, objectType, objectId) SELECT 'Registered', 'tiki_p_view', 'wiki page', MD5(CONCAT(tiki_categorized_objects.type,tiki_categorized_objects.ObjId)) FROM tiki_categorized_objects, tiki_category_objects, tiki_categories WHERE tiki_categories.name = 'PrivateElements' AND tiki_category_objects.categId = tiki_categories.categId AND tiki_category_objects.catObjectId = tiki_categorized_objects.catObjectId AND tiki_categorized_objects.type = 'wiki page';
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!