Fullscreen
[Show/Hide Right Column]

Print
English
Quickpermission is an interface in addition to the normal edit permissions tab that should ease assigning permissions to an object.
It uses the permission level to group permissions to a permission bundle that can be assigned to a group by one click.
A special functionality is, that you do not only have to use the predefined permission levels but also can define your own permission groups for special sites.

To enable quickpermissions go to:
Admin Home -> Features -> UI-Enhancements -> Quickperms: check

To define your own groups open tiki-objectpermissions and go to line 94.
Here you can insert a code block, that defines your own permission group.

For example: The code below is for none/read/write/admin groups on file galleries.




if($_REQUEST["permType"]=="file galleries") {
	unset($perms);
	$quickperms_temp['tiki_p_admin_file_galleries'] = 'tiki_p_admin_file_galleries';
	$quickperms_temp['tiki_p_assign_perm_file_gallery'] = 'tiki_p_assign_perm_file_gallery';
	$quickperms_temp['tiki_p_batch_upload_files'] = 'tiki_p_batch_upload_files';
	$quickperms_temp['tiki_p_batch_upload_file_dir'] = 'tiki_p_batch_upload_file_dir';
	$quickperms_temp['tiki_p_create_file_galleries'] = 'tiki_p_create_file_galleries';
	$quickperms_temp['tiki_p_download_files'] = 'tiki_p_download_files';
	$quickperms_temp['tiki_p_edit_gallery_file'] = 'tiki_p_edit_gallery_file';
	$quickperms_temp['tiki_p_list_file_galleries'] = 'tiki_p_list_file_galleries';
	$quickperms_temp['tiki_p_upload_files'] = 'tiki_p_upload_files';
	$quickperms_temp['tiki_p_view_fgal_explorer'] = 'tiki_p_view_fgal_explorer';
	$quickperms_temp['tiki_p_view_fgal_path'] = 'tiki_p_view_fgal_path';
	$quickperms_temp['tiki_p_view_file_gallery'] = 'tiki_p_view_file_gallery';
	$perms['admin']['name'] = "admin";
	$perms['admin']['data'] = $quickperms_temp;
	
	unset($quickperms_temp['tiki_p_admin_file_galleries']);
	unset($quickperms_temp['tiki_p_assign_perm_file_gallery']);
	$perms['write']['name'] = "write";
	$perms['write']['data'] = $quickperms_temp;
	
	unset($quickperms_temp['tiki_p_batch_upload_files']);
	unset($quickperms_temp['tiki_p_batch_upload_file_dir']);
	unset($quickperms_temp['tiki_p_create_file_galleries']);
	unset($quickperms_temp['tiki_p_edit_gallery_file']);
	unset($quickperms_temp['tiki_p_upload_files']);
	$perms['read']['name'] = "read";
	$perms['read']['data'] = $quickperms_temp;
	
	$perms['none']['name'] = "none";
	$perms['none']['data'] = array();
}


Contributors to this page: floh1111163 points  and Floh1111163 points  .
Page last modified on Friday 31 July, 2009 12:15:30 UTC by floh1111163 points .
The content on this page is licensed under the terms of the Creative Commons Attribution-ShareAlike License.

Site Language

Reference Guide

Keywords

These keywords serve as "hubs" for navigation within the Tiki documentation. They correspond to development keywords (bug reports and feature requests):



Tiki Newsletter

Delivered fresh to your email inbox!
Newsletter subscribe icon
Don't miss major announcements and other news!
Contribute to Tiki