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
case 'edit_done':
case 'reg_inp':
case 'reg_done':
case 'del_multi':
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':
Also I want to know How to disable edit option in Staffs. Only admin can add/edit. For Staffs, read only right is more.