diff options
author | friendica <info@friendica.com> | 2015-01-28 20:56:04 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2015-01-28 20:56:04 -0800 |
commit | a4960360669daa0a0c842427185ce1ada3b4ab97 (patch) | |
tree | 53feb1009266a77ee5338cc49919e45cca4b5ca6 /mod/acl.php | |
parent | 54fd8b21db2d8f3841cf590f88611a1d4f44ce48 (diff) | |
download | volse-hubzilla-a4960360669daa0a0c842427185ce1ada3b4ab97.tar.gz volse-hubzilla-a4960360669daa0a0c842427185ce1ada3b4ab97.tar.bz2 volse-hubzilla-a4960360669daa0a0c842427185ce1ada3b4ab97.zip |
local_user => local_channel
Diffstat (limited to 'mod/acl.php')
-rw-r--r-- | mod/acl.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/mod/acl.php b/mod/acl.php index 8eff93a9a..5a048ddee 100644 --- a/mod/acl.php +++ b/mod/acl.php @@ -24,7 +24,7 @@ function acl_init(&$a){ $search = $_REQUEST['query']; } - if(!(local_user())) + if(!(local_channel())) if(!($type == 'x' || $type == 'c')) killme(); @@ -58,7 +58,7 @@ function acl_init(&$a){ ORDER BY `groups`.`name` LIMIT %d OFFSET %d", db_concat('group_member.xchan', ','), - intval(local_user()), + intval(local_channel()), intval($count), intval($start) ); @@ -88,14 +88,14 @@ function acl_init(&$a){ $extra_channels_sql = substr($extra_channels_sql,1); // Remove initial comma // Getting info from the abook is better for local users because it contains info about permissions - if(local_user()) { + if(local_channel()) { if($extra_channels_sql != '') $extra_channels_sql = " OR (abook_channel IN ($extra_channels_sql)) and not (abook_flags & ". intval(ABOOK_FLAG_HIDDEN) . ') > 0'; $r = q("SELECT abook_id as id, xchan_hash as hash, xchan_name as name, xchan_photo_s as micro, xchan_url as url, xchan_addr as nick, abook_their_perms, abook_flags FROM abook left join xchan on abook_xchan = xchan_hash WHERE (abook_channel = %d $extra_channels_sql) AND not ( abook_flags & %d )>0 and not (xchan_flags & %d )>0 $sql_extra2 order by $order_extra2 xchan_name asc" , - intval(local_user()), + intval(local_channel()), intval(ABOOK_FLAG_BLOCKED|ABOOK_FLAG_PENDING|ABOOK_FLAG_ARCHIVED), intval(XCHAN_FLAGS_DELETED) ); @@ -147,7 +147,7 @@ function acl_init(&$a){ }); } } - if(intval(get_config('system','taganyone')) || intval(get_pconfig(local_user(),'system','taganyone'))) { + if(intval(get_config('system','taganyone')) || intval(get_pconfig(local_channel(),'system','taganyone'))) { if((! $r) && $type == 'c') { $r = q("SELECT substr(xchan_hash,1,18) as id, xchan_hash as hash, xchan_name as name, xchan_photo_s as micro, xchan_url as url, xchan_addr as nick, 0 as abook_their_perms, 0 as abook_flags FROM xchan @@ -165,7 +165,7 @@ function acl_init(&$a){ and not (xchan_flags & %d)>0 $sql_extra3 ORDER BY `xchan_name` ASC ", - intval(local_user()), + intval(local_channel()), intval(PERMS_W_MAIL), intval(XCHAN_FLAGS_DELETED) ); @@ -177,7 +177,7 @@ function acl_init(&$a){ and not (xchan_flags & %d)>0 $sql_extra3 ORDER BY xchan_name ASC ", - intval(local_user()), + intval(local_channel()), intval(XCHAN_FLAGS_DELETED) ); @@ -263,7 +263,7 @@ function navbar_complete(&$a) { // logger('navbar_complete'); - if((get_config('system','block_public')) && (! local_user()) && (! remote_user())) { + if((get_config('system','block_public')) && (! local_channel()) && (! remote_user())) { return; } |