Function Summary | |
---|---|
cot_auth_add_item | Adds a new object into access control lists Usage example: $auth_permit = array( COT_GROUP_DEFAULT => 'R', COT_GROUP_GUESTS => '0',, COT_GROUP_MEMBERS => 'R', 12 => 'RW', // allows Read & Write for group with ID = 12 ); $auth_lock = array( COT_GROUP_DEFAULT => 'A', COT_GROUP_GUESTS => 'W12345A', COT_GROUP_MEMBERS => 'A', 12 => 'R', // cannot change Read for group with ID = 12 ); cot_auth_add_item('test', 'item123', $auth_permit, $auth_lock); |
cot_auth_clear | Clears user permissions cache |
cot_auth_getlevel | Returns highest level of all groups a user belongs to. |
cot_auth_getmask | Returns an access character mask for a given access byte |
cot_auth_getvalue | Converts an access character mask into a permission byte |
cot_auth_remove_group | Removes a user group from auth table |
cot_auth_remove_item | Removes an object from ACL |
cot_auth_reorder | Optimizes auth table by sorting its rows |
Global Summary | |
---|---|
cot_auth_default_permit | Default allowed permissions map. |