diff options
author | git-marijus <mario@mariovavti.com> | 2017-09-15 16:27:30 +0200 |
---|---|---|
committer | git-marijus <mario@mariovavti.com> | 2017-09-15 16:27:30 +0200 |
commit | 4c5722c766643af368f600abb93a44fc72d27c11 (patch) | |
tree | c2fd1c049b180d8c00ad96a085e1627411261954 /Zotlabs/Lib | |
parent | 46b6415f5fddcea5aa7c4c55842405b68a7ccd6a (diff) | |
download | volse-hubzilla-4c5722c766643af368f600abb93a44fc72d27c11.tar.gz volse-hubzilla-4c5722c766643af368f600abb93a44fc72d27c11.tar.bz2 volse-hubzilla-4c5722c766643af368f600abb93a44fc72d27c11.zip |
some work on wiki acl
Diffstat (limited to 'Zotlabs/Lib')
-rw-r--r-- | Zotlabs/Lib/NativeWiki.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Zotlabs/Lib/NativeWiki.php b/Zotlabs/Lib/NativeWiki.php index 4301feaa0..375fad4d7 100644 --- a/Zotlabs/Lib/NativeWiki.php +++ b/Zotlabs/Lib/NativeWiki.php @@ -18,11 +18,18 @@ class NativeWiki { if($wikis) { foreach($wikis as &$w) { + + $w['allow_cid'] = acl2json($w['allow_cid']); + $w['allow_gid'] = acl2json($w['allow_gid']); + $w['deny_cid'] = acl2json($w['deny_cid']); + $w['deny_gid'] = acl2json($w['deny_gid']); + $w['rawName'] = get_iconfig($w, 'wiki', 'rawName'); $w['htmlName'] = escape_tags($w['rawName']); $w['urlName'] = urlencode(urlencode($w['rawName'])); $w['mimeType'] = get_iconfig($w, 'wiki', 'mimeType'); - $w['lock'] = (($w['item_private'] || $w['allow_cid'] || $w['allow_gid'] || $w['deny_cid'] || $w['deny_gid']) ? true : false); + + } } // TODO: query db for wikis the observer can access. Return with two lists, for read and write access |