aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Access/Permissions.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2016-12-01 15:52:54 -0800
committerzotlabs <mike@macgirvin.com>2016-12-01 15:52:54 -0800
commit97e70d62bf52de9e8879f832cc2d53c74f9c27f3 (patch)
tree19a3c2849834bc2aa520711a967e90c3e522ca50 /Zotlabs/Access/Permissions.php
parent47a356ff52900fd8cd8d4980b44c69c13b2e612f (diff)
downloadvolse-hubzilla-97e70d62bf52de9e8879f832cc2d53c74f9c27f3.tar.gz
volse-hubzilla-97e70d62bf52de9e8879f832cc2d53c74f9c27f3.tar.bz2
volse-hubzilla-97e70d62bf52de9e8879f832cc2d53c74f9c27f3.zip
extensible perms: the really, really hard part - figuring out what to do about people with custom permissions so as to set sane defaults.
Diffstat (limited to 'Zotlabs/Access/Permissions.php')
-rw-r--r--Zotlabs/Access/Permissions.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/Zotlabs/Access/Permissions.php b/Zotlabs/Access/Permissions.php
index 61ea51a48..1951f2f0f 100644
--- a/Zotlabs/Access/Permissions.php
+++ b/Zotlabs/Access/Permissions.php
@@ -10,9 +10,18 @@ class Permissions {
/**
* Extensible permissions.
* To add new permissions, add to the list of $perms below, with a simple description.
+ *
* Also visit PermissionRoles.php and add to the $ret['perms_connect'] property for any role
* if this permission should be granted to new connections.
*
+ * Next look at PermissionRoles::new_custom_perms() and provide a handler for updating custom
+ * permission roles. You will want to set a default PermissionLimit for each channel and also
+ * provide a sane default for any existing connections. You may or may not wish to provide a
+ * default auto permission. If in doubt, leave this alone as custom permissions by definition
+ * are the responsbility of the channel owner to manage. You just don't want to create any
+ * suprises or break things so you have an opportunity to provide sane settings.
+ *
+ *
* Permissions with 'view' in the name are considered read permissions. Anything
* else requires authentication. Read permission limits are PERMS_PUBLIC and anything else
* is given PERMS_SPECIFIC.