|
5. Permissions Permissions control which action(s) can be performed on a particular table. A default permission value is set in phpmycrud.php and is used for all tables unless the permission is specifically changed before calling dispatch(). If you set the default permission to 'cruda', you would need to lower the permissions on any table you don't want to have full admin permissions. Alternately, if you set the default permission level to '' (an empty string), then you would need to increase the permission level to at least 'r' in order to view any tables. Either way, permissions can be individually changed on a table-by-table basis as needed by your application.
Example 5: Read Only (See it Live!) Permission 'r' allows only the 'view' action. The 'Actions' column, checkboxes and editing controls are automatically hidden on read-only tables, because there is no need for them.
|