Posted by ranjan
2013-11-26

used company directory all working fine but admin and staff both are given the privilege to add, edit delete the listing.. I want to remove the privilege for staff
Posted by Tom
2013-11-26

OK, to disable editing option for non-administrators, open web/staff/app/cls_ps_(--table-name--).inc.php and add
if ( !$this->sys->IsAdmin() ) exit;
after
case 'edit_inp':
The result should look like:
case 'edit_inp': if ( !$this->sys->IsAdmin() ) exit;
Do the same for the following lines, too.
"case 'edit_done':"
"case 'reg_inp':"
"case 'reg_done':"
"case 'del_multi':