The Red Matrix
 All Classes Namespaces Files Functions Variables Pages
permissions.php File Reference

Functions

 get_perms ()
 
 get_all_perms ($uid, $observer_xchan, $internal_use=true)
 
 perm_is_allowed ($uid, $observer_xchan, $permission)
 
 check_list_permissions ($uid, $arr, $perm)
 
 site_default_perms ()
 
 get_role_perms ($role)
 
 role_selector ($current)
 

Function Documentation

check_list_permissions (   $uid,
  $arr,
  $perm 
)

Referenced by collect_recipients().

get_all_perms (   $uid,
  $observer_xchan,
  $internal_use = true 
)

get_all_perms($uid,$observer_xchan)

Parameters
$uid: The channel_id associated with the resource owner
$observer_xchan,:The xchan_hash representing the observer
Returns
: array of all permissions, key is permission name, value is true or false

Referenced by achievements_content(), blocks_content(), change_channel(), channel_content(), connedit_content(), editlayout_content(), editwebpage_content(), filestorage_content(), layouts_content(), like_content(), page_content(), webpages_content(), zfinger_init(), and zot_refresh().

get_role_perms (   $role)

get_role_perms($role)

Parameters
string$roleGiven a string for the channel role ('social','forum', etc) return an array of all permission fields pre-filled for this role. This includes the channel permission scope indicators (anything beginning with 'channel_') as well as perms_auto: true or false to create auto-permissions for this channel perms_follow: The permissions to apply when initiating a connection request to another channel perms_accept: The permissions to apply when accepting a connection request from another channel (not automatic) default_collection: true or false to make the default ACL include the channel's default collection directory_publish: true or false to publish this channel in the directory Any attributes may be extended (new roles defined) and modified (specific permissions altered) by plugins

Referenced by connedit_content(), create_identity(), and new_contact().

role_selector (   $current)

Referenced by new_channel_content().

site_default_perms ( )

Referenced by create_identity().