ocPortal Tutorial: Access control and privileges
Written by Philip Withnall, ocProducts
Any large site will have areas that it wants certain members to be able to access, but not others. For example:- Categories of information that are visible to the eyes of members from only one group.
- Pages available only if you're new to the site.
For an overview of the ocPortal permission system, see the 'Advanced configuration' tutorial.
Table of contents
Access control
|
The Permission Tree Editor |
- The permissions tree editor
- Manual configuration
{!DOC_PERMISSIONS_TREE}
The remainder of this section is concerned with manual permission setting.
Editing zone permissions
|
Setting zone permissions |
Choose a zone to edit (bear in mind that you can't change permissions for the Welcome Zone, as everybody is allowed to access it), and continue.
|
Choosing a zone to edit |
Editing page permissions
|
Editing page permissions |
Once all the access permissions are set as appropriate, submit the form.
Editing category permissions
|
Editing category permissions |
Click on the edit category link for the category type you want to edit.
Select the category to edit, and submit the form.
Then, set the permissions as necessary, and submit the form once more.
|
Choosing a category to edit |
The process is the same for editing the permissions of any type of category.
Match key permissions
|
Here we have removed banner submission for guests. Normally we would restrict based on content visibility level, but that is less fine-grained. |
Specific permissions
|
Choosing a specific permission section to edit permissions within |
Testing access and privileges
|
The SU feature is incredibly quick and easy: just enter a name and click a button |
|
Setting specific permissions |
Adding a new group for a non-OCF site
If you are not using OCF and decide to add a new user-group, then ocPortal will not have any permissions associated with it.Fortunately ocPortal has a special feature for this situation: under the 'Security' section of the Admin Zone you will find an icon, Absorb usergroup-permissions, for it. You may use this feature to take the permissions of an existing user-group and copy them so that the new user-group has those same permissions.
Concepts
- access permission
- Whether members of a certain usergroup have permission to access somewhere (a zone, page, or category, for example); a member does not need all their user-groups to have access, only one
- specific permission
- Whether a certain usergroup has permission to do specific things (such as using high-level Comcode, or bypass the word-filter)
- su
- Named after the Unix command



