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)
 

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 change_channel(), channel_content(), connections_content(), photos_init(), and zfinger_init().