aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Access/Permissions.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-01-26 15:08:55 +0000
committerMario <mario@mariovavti.com>2020-01-26 15:08:55 +0000
commit1712eceaf95e5e57d8f5866cb1f6100a0acd28b6 (patch)
treecab368286e393f4d6cda5c528db14859f3344a34 /Zotlabs/Access/Permissions.php
parent7d8c6cb9edb1eddb5b1a1868bf02f875330d5771 (diff)
downloadvolse-hubzilla-1712eceaf95e5e57d8f5866cb1f6100a0acd28b6.tar.gz
volse-hubzilla-1712eceaf95e5e57d8f5866cb1f6100a0acd28b6.tar.bz2
volse-hubzilla-1712eceaf95e5e57d8f5866cb1f6100a0acd28b6.zip
port Lib/Connect and Module/Follow from zap. Connect with new connections via zot6
Diffstat (limited to 'Zotlabs/Access/Permissions.php')
-rw-r--r--Zotlabs/Access/Permissions.php13
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);
+ }
+}