(Template text expanded with more content) |
m (Minor formatting correction) |
||
Line 13: | Line 13: | ||
In your {{{file}}} file you can create three different roles. | In your {{{file}}} file you can create three different roles. | ||
− | First role is assigned to '''every user''' (wildcard | + | First role is assigned to '''every user''' (wildcard <code>*</code> is used): |
{{{code3}}} | {{{code3}}} | ||
Revision as of 09:55, 31 March 2011
Sessions
The roleSessionVar
is a session variable name that CKFinder must use to retrieve the role of the current user.
{{{code1}}}
To switch between different user roles, change the session variable: {{{code2}}}
For more information about using session variables refer to the [[CKFinder_2.x/Developers_Guide/{{{lang}}}/Configuration/Sessions|Sessions]] article.
Example 3
In your {{{file}}} file you can create three different roles.
First role is assigned to every user (wildcard *
is used):
{{{code3}}}
Second role defines a registered user: {{{code4}}}
Third role defines the administrator: {{{code5}}}
With the above settings you have created three different user permission sets. The default user (everybody) is allowed to browse all files and folders. A registered user also has the ability to upload files and create folders. The administrator is granted full permissions.
Now suppose you have an authentication mechanism somewhere in your Web application.