From b2bae867d02b62708e09e5abf0ebd03a4d2b095e Mon Sep 17 00:00:00 2001 From: zotlabs Date: Tue, 7 Feb 2017 16:08:27 -0800 Subject: more background work for permcat support --- Zotlabs/Access/Permissions.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Zotlabs/Access/Permissions.php') 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; -- cgit v1.2.3