| Knowledgebase - limiting staff rights. -
22-04-2008, 09:34 PM
I'm *sure* I've seen someone else with this issue, but I can't seem to find it today in the forums. We wanted to limit the staff to only be able to view knowledgebase articles and not be able to insert, edit or delete them. These rights would be reserved for Admins. Also, we did not want the Staff to have the rights to add or modify knowledgebase categories.
Ideally, I would have preferred something along the lines of what can be found under 'Manage Groups' where the rights 'edit knowledgebase article', 'delete knowledgebase article', and so on for all the actions under the knowledgebase section could be explicitly set. Until such time as rights management like that is implemented, we made the following modifications to limit these rights to Admin level staff.
Three files were modified.
/modules/knowledgebase/knowledgebase.php
/modules/knowledgebase/staff_questions.php
locale/en-us/en-us.php
If the non-admin staff member tries to manage or insert a category, they are sent back to the dashboard.
If the non-admin staff member tries to insert, modify or delete and article, they get a blank page with an error message telling them they don't have the rights to perform the action.
Not snazzy, but it keeps the staff from unauthorized modifications to articles. |