diff options
author | Mario <mario@mariovavti.com> | 2020-03-28 11:12:22 +0100 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2020-03-28 11:12:22 +0100 |
commit | 6e1c3b6d48224c7670b0291d3c7eb25475b1594d (patch) | |
tree | ce6e5592f090595f390ab073e3ad4edaa727c8ee /Zotlabs/Access/Permissions.php | |
parent | 720d3dcedc96c7aaf6c4444c8b45acd46b8718b0 (diff) | |
parent | bcdd75b8178309e5c4e65d170505ab60678c2159 (diff) | |
download | volse-hubzilla-6e1c3b6d48224c7670b0291d3c7eb25475b1594d.tar.gz volse-hubzilla-6e1c3b6d48224c7670b0291d3c7eb25475b1594d.tar.bz2 volse-hubzilla-6e1c3b6d48224c7670b0291d3c7eb25475b1594d.zip |
Merge branch 'z6connect' into 'dev'
Transition to zot6
See merge request hubzilla/core!1823
Diffstat (limited to 'Zotlabs/Access/Permissions.php')
-rw-r--r-- | Zotlabs/Access/Permissions.php | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/Zotlabs/Access/Permissions.php b/Zotlabs/Access/Permissions.php index 20dc22a72..35016ed57 100644 --- a/Zotlabs/Access/Permissions.php +++ b/Zotlabs/Access/Permissions.php @@ -283,4 +283,15 @@ class Permissions { return ( [ 'perms' => $my_perms, 'automatic' => $automatic ] ); } -}
\ No newline at end of file + static public function serialise($p) { + $n = []; + if($p) { + foreach($p as $k => $v) { + if(intval($v)) { + $n[] = $k; + } + } + } + return implode(',',$n); + } +} |