From fbafd92f7f7b96b215b98f30de9a1ccbdb3479be Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 25 Sep 2012 17:57:20 -0700 Subject: moving a lot of structure around. 'entity' is now 'channel' --- include/Contact.php | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'include/Contact.php') diff --git a/include/Contact.php b/include/Contact.php index d4d29b297..38c3c3203 100644 --- a/include/Contact.php +++ b/include/Contact.php @@ -1,7 +1,7 @@ array('entity_r_stream', PERMS_R_STREAM ), - 'view_profile' => array('entity_r_profile', PERMS_R_PROFILE), - 'view_photos' => array('entity_r_photos', PERMS_R_PHOTOS), - 'view_contacts' => array('entity_r_abook', PERMS_R_ABOOK), - - 'send_stream' => array('entity_w_stream', PERMS_W_STREAM), - 'post_wall' => array('entity_w_wall', PERMS_W_WALL), - 'tag_deliver' => array('entity_w_tagwall', PERMS_W_TAGWALL), - 'post_comments' => array('entity_w_comment', PERMS_W_COMMENT), - 'post_mail' => array('entity_w_mail', PERMS_W_MAIL), - 'post_photos' => array('entity_w_photos', PERMS_W_PHOTOS), - 'chat' => array('entity_w_chat', PERMS_W_CHAT), + 'view_stream' => array('channel_r_stream', PERMS_R_STREAM ), + 'view_profile' => array('channel_r_profile', PERMS_R_PROFILE), + 'view_photos' => array('channel_r_photos', PERMS_R_PHOTOS), + 'view_contacts' => array('channel_r_abook', PERMS_R_ABOOK), + + 'send_stream' => array('channel_w_stream', PERMS_W_STREAM), + 'post_wall' => array('channel_w_wall', PERMS_W_WALL), + 'tag_deliver' => array('channel_w_tagwall', PERMS_W_TAGWALL), + 'post_comments' => array('channel_w_comment', PERMS_W_COMMENT), + 'post_mail' => array('channel_w_mail', PERMS_W_MAIL), + 'post_photos' => array('channel_w_photos', PERMS_W_PHOTOS), + 'chat' => array('channel_w_chat', PERMS_W_CHAT), ); $ret = array(); foreach($perms as $k => $v) { - $ret[$k] = z_check_perms($k,$v,$entity,$contact,$is_contact,$is_site,$is_network,$is_anybody); + $ret[$k] = z_check_perms($k,$v,$channel,$contact,$is_contact,$is_site,$is_network,$is_anybody); } @@ -65,11 +65,11 @@ function map_perms($entity,$zguid,$zsig) { } -function z_check_perms($k,$v,$entity,$contact,$is_contact,$is_site,$is_network,$is_anybody) { +function z_check_perms($k,$v,$channel,$contact,$is_contact,$is_site,$is_network,$is_anybody) { $allow = (($contact['self']) ? true : false); - switch($entity[$v[0]]) { + switch($channel[$v[0]]) { case PERMS_PUBLIC: if($is_anybody) $allow = true; -- cgit v1.2.3