diff options
author | redmatrix <git@macgirvin.com> | 2016-07-04 17:55:13 -0700 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-07-04 17:55:13 -0700 |
commit | d566ffa678dc9f035a022304a82560b19495a838 (patch) | |
tree | 2d9792aea61b9807efba95818094c90337622c68 /Zotlabs/Access | |
parent | 6bf2e8a1087546a1986adddcdab486af0891383e (diff) | |
download | volse-hubzilla-d566ffa678dc9f035a022304a82560b19495a838.tar.gz volse-hubzilla-d566ffa678dc9f035a022304a82560b19495a838.tar.bz2 volse-hubzilla-d566ffa678dc9f035a022304a82560b19495a838.zip |
more heavy lifting on extensible perms
Diffstat (limited to 'Zotlabs/Access')
-rw-r--r-- | Zotlabs/Access/Permissions.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Zotlabs/Access/Permissions.php b/Zotlabs/Access/Permissions.php index bbf14d7dc..520957638 100644 --- a/Zotlabs/Access/Permissions.php +++ b/Zotlabs/Access/Permissions.php @@ -34,6 +34,20 @@ class Permissions { } + static public function BlockedAnonPerms() { + + // Perms from the above list that are blocked from anonymous observers. + // e.g. you must be authenticated. + + $perms = [ 'send_stream', 'write_pages', 'post_wall', 'write_storage', 'post_comments', 'post_mail', 'post_like', 'tag_deliver', 'chat', 'republish', 'delegate' ]; + + $x = array('permissions' => $perms); + call_hooks('write_perms',$x); + return($x['permissions']); + + } + + static public function OwnerLimitSet($channel_id,$permission,$limit) { return Zlib\PConfig::Set($channel_id,'perms',$permission,$limit); } |