I use the PHP5 version of ckFinder 2.0.1.
I wish to accomplish this:
One role, named here role1, can access the root dir with restricted rights whilst must be able to access a subdir "filefolder" with different access rights.
Hence I have, in my config file:
$config['AccessControl'][] = Array(
'role' => 'r1',
'resourceType' => '*',
'folder' => '/',
'folderView' => true,
'folderCreate' => false,
'folderRename' => false,
'folderDelete' => false,
'fileView' => true,
'fileUpload' => false,
'fileRename' => false,
'fileDelete' => false);
$config['AccessControl'][] = Array(
'role' => 'r1',
'resourceType' => '*',
'folder' => '/filefolder',
'folderView' => true,
'folderCreate' => true,
'folderRename' => false,
'folderDelete' => false,
'fileView' => true,
'fileUpload' => true,
'fileRename' => true,
'fileDelete' => false);
I can get it to work. The same rights always apply. In fact the rights defined at the root dir always apply.
What did I miss in order to have different rights at different levels of the dir hierarchy ?
I am sure the role transmission mechanism works between PHP and ckFinder with the userrolevar. But does not modify the rights....
Any help would be appreciated.
Thanks
SK
I wish to accomplish this:
One role, named here role1, can access the root dir with restricted rights whilst must be able to access a subdir "filefolder" with different access rights.
Hence I have, in my config file:
$config['AccessControl'][] = Array(
'role' => 'r1',
'resourceType' => '*',
'folder' => '/',
'folderView' => true,
'folderCreate' => false,
'folderRename' => false,
'folderDelete' => false,
'fileView' => true,
'fileUpload' => false,
'fileRename' => false,
'fileDelete' => false);
$config['AccessControl'][] = Array(
'role' => 'r1',
'resourceType' => '*',
'folder' => '/filefolder',
'folderView' => true,
'folderCreate' => true,
'folderRename' => false,
'folderDelete' => false,
'fileView' => true,
'fileUpload' => true,
'fileRename' => true,
'fileDelete' => false);
I can get it to work. The same rights always apply. In fact the rights defined at the root dir always apply.
What did I miss in order to have different rights at different levels of the dir hierarchy ?
I am sure the role transmission mechanism works between PHP and ckFinder with the userrolevar. But does not modify the rights....
Any help would be appreciated.
Thanks
SK
Re: I can't get ACL working with folders
I've just checked it and it works for me (make sure that sessions are enabled and that $_SESSION['CKFinder_UserRole'] is set to 'r1'). After clicking on the filefolder with right mouse button, I am able to create folders in the Files resource type.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+