aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Access/Permissions.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-02-07 16:15:15 -0800
committerzotlabs <mike@macgirvin.com>2017-02-07 16:15:15 -0800
commitecca69442d28cc8f328809f0589c79159639fefc (patch)
tree905cb0a200b5fe5e4258153a88125c81c7df2c08 /Zotlabs/Access/Permissions.php
parentcfe843b870c71ef36c75030866091ef7746038bc (diff)
parentb2bae867d02b62708e09e5abf0ebd03a4d2b095e (diff)
downloadvolse-hubzilla-ecca69442d28cc8f328809f0589c79159639fefc.tar.gz
volse-hubzilla-ecca69442d28cc8f328809f0589c79159639fefc.tar.bz2
volse-hubzilla-ecca69442d28cc8f328809f0589c79159639fefc.zip
Merge branch 'abroles' into dev
Diffstat (limited to 'Zotlabs/Access/Permissions.php')
-rw-r--r--Zotlabs/Access/Permissions.php12
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;