History: Quickperms
Source of version: 2 (current)
Copy to clipboard
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. {CODE(colors="php")}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(); }{CODE}