diff options
author | friendica <info@friendica.com> | 2015-01-29 00:28:23 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2015-01-29 00:28:23 -0800 |
commit | fd0b6c967fce4d8a82e9dad121ae7d8301d3f342 (patch) | |
tree | 5c37812ef7baeadc17fce088c4394d25f75b593c /util/fresh | |
parent | c993ddd86ee25832e35e65333fa25b396e7aefdf (diff) | |
parent | 872b165eb2bb5d632a12f2d7e1a28e195c2d5348 (diff) | |
download | volse-hubzilla-fd0b6c967fce4d8a82e9dad121ae7d8301d3f342.tar.gz volse-hubzilla-fd0b6c967fce4d8a82e9dad121ae7d8301d3f342.tar.bz2 volse-hubzilla-fd0b6c967fce4d8a82e9dad121ae7d8301d3f342.zip |
Merge branch 'master' into pocorate
Diffstat (limited to 'util/fresh')
-rwxr-xr-x | util/fresh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/util/fresh b/util/fresh index 7f96a319c..8bee5dff7 100755 --- a/util/fresh +++ b/util/fresh @@ -99,7 +99,7 @@ function process_command($line) { } break; case 'channel': - if(! local_user()) + if(! local_channel()) echo 'Permission denied.'; if(argv(1)) { $r = q("select * from channel where channel_address = '%s' and channel_account_id = %d limit 1", @@ -116,7 +116,7 @@ function process_command($line) { } break; case 'conn': - if(! local_user()) { + if(! local_channel()) { echo "Permission denied."; break; } @@ -124,14 +124,14 @@ function process_command($line) { for($x = 1; $x < argc(); $x ++) { $r = q("select * from abook left join xchan on abook_xchan = xchan_hash where abook_id = %d and abook_channel = %d", intval(argv($x)), - intval(local_user()) + intval(local_channel()) ); if($r) echo jindent(json_encode($r[0])) . "\n"; } } else { $r = q("select * from abook left join xchan on abook_xchan = xchan_hash where abook_channel = %d order by abook_id", - intval(local_user()) + intval(local_channel()) ); if($r) { foreach($r as $rr) |