diff options
author | zotlabs <mike@macgirvin.com> | 2017-02-07 17:51:56 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-02-07 17:51:56 -0800 |
commit | 2d3e20d96ea4dd08b982f9ff0fcfa94949fb853b (patch) | |
tree | 5c5b10e91633d9efda42c5a59a9fc652367567ae /Zotlabs/Access/PermissionRoles.php | |
parent | 723b51c931e7365b3c8d531bf25c6c02308cba9f (diff) | |
download | volse-hubzilla-2d3e20d96ea4dd08b982f9ff0fcfa94949fb853b.tar.gz volse-hubzilla-2d3e20d96ea4dd08b982f9ff0fcfa94949fb853b.tar.bz2 volse-hubzilla-2d3e20d96ea4dd08b982f9ff0fcfa94949fb853b.zip |
move permcat initialisation to zlib
Diffstat (limited to 'Zotlabs/Access/PermissionRoles.php')
-rw-r--r-- | Zotlabs/Access/PermissionRoles.php | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/Zotlabs/Access/PermissionRoles.php b/Zotlabs/Access/PermissionRoles.php index dd9a49d05..49d478c5c 100644 --- a/Zotlabs/Access/PermissionRoles.php +++ b/Zotlabs/Access/PermissionRoles.php @@ -276,48 +276,4 @@ class PermissionRoles { return $roles; } - - static public function permcats($uid) { - - $permcats = [ - [ 'follower', t('follower','permcat'), - [ 'view_stream','view_profile','view_contacts','view_storage','view_pages','view_wiki', - 'post_like' ] - ], - - [ 'contributor', t('contributor','permcat'), - [ 'view_stream','view_profile','view_contacts','view_storage','view_pages','view_wiki', - 'post_wall','post_comments','write_wiki','post_like','tag_deliver','chat' ] - ], - [ 'trusted', t('trusted','permcat'), - [ 'view_stream','view_profile','view_contacts','view_storage','view_pages', - 'write_storage','post_wall','write_pages','write_wiki','post_comments','post_like','tag_deliver', - 'chat', 'republish' ] - ], - [ 'moderator', t('moderator','permcat'), - [ 'view_stream','view_profile','view_contacts','view_storage','view_pages', - 'write_storage','post_wall','wite_pages','write_wiki','post_comments','post_like','tag_deliver', - 'chat', 'republish' ] - ] - ]; - - if($uid) { - $x = q("select * from pconfig where uid = %d and cat = 'permcat'", - intval($uid) - ); - if($x) { - foreach($x as $xv) { - $permcats[] = [ $xv['k'], $xv['k'], $xv['v'] ]; - } - } - } - - call_hooks('permcats',$permcats); - - return $permcats; - - } - - - }
\ No newline at end of file |