diff options
author | Andrew Manning <tamanning@zoho.com> | 2016-05-29 20:39:19 -0400 |
---|---|---|
committer | Andrew Manning <tamanning@zoho.com> | 2016-05-29 20:39:19 -0400 |
commit | 00d32f6b947d10b836cf1a4d59dbff3413517fd5 (patch) | |
tree | 9f5c31a3a91e65ddcd6fb6049c14c6717f12019c /include/wiki.php | |
parent | fad27fc1e791dbe77321d4b45eb6293f8ff97310 (diff) | |
download | volse-hubzilla-00d32f6b947d10b836cf1a4d59dbff3413517fd5.tar.gz volse-hubzilla-00d32f6b947d10b836cf1a4d59dbff3413517fd5.tar.bz2 volse-hubzilla-00d32f6b947d10b836cf1a4d59dbff3413517fd5.zip |
Only show wiki delete control if channel owner
Diffstat (limited to 'include/wiki.php')
-rw-r--r-- | include/wiki.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/wiki.php b/include/wiki.php index e07cda660..54644dd18 100644 --- a/include/wiki.php +++ b/include/wiki.php @@ -7,9 +7,9 @@ use \Zotlabs\Storage\GitRepo as GitRepo; define ( 'WIKI_ITEM_RESOURCE_TYPE', 'wiki' ); -function wiki_list($nick, $observer_hash) { +function wiki_list($channel, $observer_hash) { if (local_channel() || remote_channel()) { - $sql_extra = item_permissions_sql(get_channel_by_nick($nick)['channel_id'], $observer_hash); + $sql_extra = item_permissions_sql($channel['channel_id'], $observer_hash); } else { $sql_extra = " AND item_private = 0 "; } |