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 /util | |
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 'util')
-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) |