Posted by Nidhin
2014-06-23

Thanks for your previous support.
Also I want to know How to disable edit option in Staffs. Only admin can add/edit. For Staffs, read only right is more.
Posted by Tom
2014-06-24

To prevent non-administrators from adding/editing/deleting records, 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':