Hi all,
I'm having some problems configuring the AccessRoles of CKFinder.
I'm trying to enable image uploads for my users using AccessRoles, but unfortunately it doesn't seem to work. All I get to see in the file browser is the Basket directory.
I've set up an accessrole "users" for the image directory:
(The $baseUrl is set to '/')
However, if I set an extra AccessRole for everybody ( * ) it does seem to work, but the extra permissions of the user role are ignored.
For instance, if I set the everbody accessrole to this:
Then I can see the image directory, but I can't upload or do anything else.
So only the permissions of the everbody accessrole are applied, the user accessrole doesn't override them.
How can I solve this issue?
I'm having some problems configuring the AccessRoles of CKFinder.
I'm trying to enable image uploads for my users using AccessRoles, but unfortunately it doesn't seem to work. All I get to see in the file browser is the Basket directory.
I've set up an accessrole "users" for the image directory:
$config['AccessControl'][] = Array( 'role' => 'user', 'resourceType' => 'Images', 'folder' => '/images', 'folderView' => true, 'folderCreate' => true, 'folderRename' => false, 'folderDelete' => false, 'fileView' => true, 'fileUpload' => true, 'fileRename' => false, 'fileDelete' => false);
(The $baseUrl is set to '/')
However, if I set an extra AccessRole for everybody ( * ) it does seem to work, but the extra permissions of the user role are ignored.
For instance, if I set the everbody accessrole to this:
$config['AccessControl'][] = Array( 'role' => '*', 'resourceType' => '*', 'folder' => '/', 'folderView' => true, 'folderCreate' => false, 'folderRename' => false, 'folderDelete' => false, 'fileView' => true, 'fileUpload' => false, 'fileRename' => false, 'fileDelete' => false);
Then I can see the image directory, but I can't upload or do anything else.
So only the permissions of the everbody accessrole are applied, the user accessrole doesn't override them.
How can I solve this issue?
Re: AccessRole Problem
With such a configuration, you'll be able to upload files only inside of "/images" subfolder of Images resource type.
The following should work better:
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: AccessRole Problem