These functions provide access to glFusion Security library. These functions are defined in private/system/lib-security.php and are included by glFusion.
This is the security library for glFusion. This is used to implement glFusion's *nix-style security system.
Programming notes: For items you need security on you need the following for each record in your database:
|owner_id || mediumint(8)
|group_id || mediumint(8)
|perm_owner || tinyint(1) unsigned
|perm_group || tinyint(1) unsigned
|perm_members || tinyint(1) unsigned
|perm_anon || tinyint(1) unsigned
For display one function can handle most needs:
A call to this function will allow you to determine if the current user should see the item.
For the admin screen several functions will make life easier:
This function displays the permissions widget with arrays for each permission
This function takes the permissions from the previous function and converts them into an integer for saving back to the database.