diff options
author | zotlabs <mike@macgirvin.com> | 2017-02-07 16:08:27 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-02-07 16:08:27 -0800 |
commit | b2bae867d02b62708e09e5abf0ebd03a4d2b095e (patch) | |
tree | 10e0c03f1a054ffd262c70a8860474a9b6977b0f /Zotlabs/Access/Permissions.php | |
parent | 1cef3f15d5174636b59c86bb816a0009940201ef (diff) | |
download | volse-hubzilla-b2bae867d02b62708e09e5abf0ebd03a4d2b095e.tar.gz volse-hubzilla-b2bae867d02b62708e09e5abf0ebd03a4d2b095e.tar.bz2 volse-hubzilla-b2bae867d02b62708e09e5abf0ebd03a4d2b095e.zip |
more background work for permcat support
Diffstat (limited to 'Zotlabs/Access/Permissions.php')
-rw-r--r-- | Zotlabs/Access/Permissions.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Zotlabs/Access/Permissions.php b/Zotlabs/Access/Permissions.php index 81408f122..b4b2e4d44 100644 --- a/Zotlabs/Access/Permissions.php +++ b/Zotlabs/Access/Permissions.php @@ -106,6 +106,18 @@ class Permissions { } + static public function OPerms($arr) { + $ret = []; + if($arr) { + foreach($arr as $k => $v) { + $ret[] = [ 'name' => $k, 'value' => $v ]; + } + } + return $ret; + } + + + static public function FilledAutoperms($channel_id) { if(! intval(get_pconfig($channel_id,'system','autoperms'))) return false; |