Configuring Access permissions
- Date added:
- Thursday, 11 September 2008
- Last revised:
- never
Answer
Attention:
All access permissions are defined in YOUR_JOOMLA_ROOT/components/com_quickfaq/classes/quickfaq.acl.php
Currently you can grant/restrict permissions for the following actions:
- Add a Faq Item
- Edit a Faq Item
- Change the state of a FAQ Item
- Add new Tags
(registered, author, editor, manager, administrator, super administrator).
Example:
The default minimum required userrank in QuickFAQ to add new Tags is "Editor". Asume you want to allow "Authors" to add new Tags.
Add to the following snippet:
--------------------------------------------------------------------------------------------------------------------
//Who can add new tags?
$auth->addACL('com_quickfaq', 'newtags', 'users', 'super administrator');
$auth->addACL('com_quickfaq', 'newtags', 'users', 'administrator');
$auth->addACL('com_quickfaq', 'newtags', 'users', 'manager');
$auth->addACL('com_quickfaq', 'newtags', 'users', 'editor');
--------------------------------------------------------------------------------------------------------------------
only this line:
--------------------------------------------------------------------------------------------------------------------
$auth->addACL('com_quickfaq', 'newtags', 'users', 'author');
--------------------------------------------------------------------------------------------------------------------
Keep in mind, that even it seems obvious there is no hierarchial inheritance.
That means, if you grant a registered user add permissions, that super administrators
will not be able to add FAQ items till you define them also explicit for this group!
Keep also in mind that it doesn't make sense to grant a registered user edit permission but no add permission.



