Hi
just upgraded to ckfinder 2.1 and integrated this in drupal
I want to restrict access (rename and delete) to a role 'editor', webmaster and administrator have all access.
this is what I tried with no result, they all have the same rights (all rename and delete)
Hope someone can help me with this issue.
thx
blueblot
just upgraded to ckfinder 2.1 and integrated this in drupal
I want to restrict access (rename and delete) to a role 'editor', webmaster and administrator have all access.
this is what I tried with no result, they all have the same rights (all rename and delete)
<?php $config['RoleSessionVar'] = 'CKFinder_UserRole'; //session_start(); /* AccessControl : used to restrict access or features to specific folders. Many "AccessControl" entries can be added. All attributes are optional. Subfolders inherit their default settings from their parents' definitions. - The "role" attribute accepts the special '*' value, which means "everybody". - The "resourceType" attribute accepts the special value '*', which means "all resource types". */ // first limit the default user rights $config['AccessControl'][] = Array( 'role' => '*', 'resourceType' => '*', 'folder' => '/', 'folderView' => true, 'folderCreate' => true, 'folderRename' => false, 'folderDelete' => false, 'fileView' => true, 'fileUpload' => true, 'fileRename' => false, 'fileDelete' => false); // add some rights for webmasters and admins $config['AccessControl'][] = Array( 'role' => 'webmaster', 'resourceType' => '*', 'folder' => '/', 'folderView' => true, 'folderCreate' => true, 'folderRename' => true, 'folderDelete' => true, 'fileView' => true, 'fileUpload' => true, 'fileRename' => true, 'fileDelete' => true); $config['AccessControl'][] = Array( 'role' => 'administrator', 'resourceType' => '*', 'folder' => '/', 'folderView' => true, 'folderCreate' => true, 'folderRename' => true, 'folderDelete' => true, 'fileView' => true, 'fileUpload' => true, 'fileRename' => true, 'fileDelete' => true); ?>
Hope someone can help me with this issue.
thx
blueblot
Re: accesscontrol and roles in Drupal
Reply is here:
http://drupal.org/node/1281432
Greetings
Re: accesscontrol and roles in Drupal