Kayako logo
Modifications & Addon Releases Modification guides and addons are posted here to share with the community. Do not post requests in here!

Notices

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  (#1) Old
sfriz Offline
New Member
 
Posts: 4
Join Date: Apr 2008
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.
Attached Files
File Type: php changes.php (5.2 KB, 8 views)
   
Reply With Quote
  (#2) Old
sfriz Offline
New Member
 
Posts: 4
Join Date: Apr 2008
LImiting staff rights in knowledgebase - cleaned up. - 10-05-2008, 11:05 PM

I was able to move the knowledgebase rights limits into the AdminCP by making changes to these portions of code.
/modules/knowledgebase/staff_questions.php
/modules/knowledgebase/knowledgebase.php
/modules/core/config_permissions.php
/locale/en-us/admin_staffpermissions.php
/locale/en-us/en-us.php

I also imported some sql data to preload the db as the db seems to default to all the permissions being 'on' rather than off, so I inserted 0's .
kb_perms_insert.sql

The files are in the attached .zip file.
Quick Instructions:
Save your originals. Replace above listed files.
Insert data into db. (you may need to adjust the number of groups of data inserted - DON'T just blindly insert the data unless you have only 5 groups. (I trimmed the file down for readability as we have many more than 5 groups.)
Restart Apache.

This gives radio buttons in the Staff->Manage Groups section under each group in the Knowledgebase section.
Managing Categories allows creation and deletion of categories.
Managing Articles allows deletion, mass deletion, moving, etc.
Insert Articles allows group to add articles to the knowledgebase.
Editing Articles allows group members to edit/update articles.
With these changes, we can allow select groups to add articles to the knowledgebase, while only allowing other groups to read the articles. These even allow for letting a group edit, but not insert articles, or insert without letting them edit.
Attached Files
File Type: zip kb_permissions_changes.zip (12.7 KB, 2 views)
   
Reply With Quote
Reply

Tags
knowledgebase, limiting, rights, staff

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Knowledgebase Knowledgebase -> Overhauled knowledgebase use for staff kpjam Will Implement (V4) 26 06-10-2008 06:47 AM
Using Template Groups - A Tutorial Matthew How do I? 5 07-05-2008 10:37 AM
Staff department rights Dynadata SupportSuite, eSupport and LiveResponse 0 31-03-2008 10:13 AM
View knowledgebase from within staff CP aabramson SupportSuite, eSupport and LiveResponse 4 13-11-2006 02:28 PM
Where can staff browse the staff knowledgebase muppie SupportSuite, eSupport and LiveResponse 0 23-03-2006 04:07 PM



Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vBulletin Skin developed by: vBStyles.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46