aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Access/Permissions.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-02-01 18:05:02 -0800
committerzotlabs <mike@macgirvin.com>2017-02-01 18:05:02 -0800
commit94290102b6e1b29b29c58318670da797394550c1 (patch)
tree12bdfade060ccab26480913583ad544239c2e1f5 /Zotlabs/Access/Permissions.php
parentf94c244b9f6d1d1ccda36adeda08f2d04684a4a2 (diff)
downloadvolse-hubzilla-94290102b6e1b29b29c58318670da797394550c1.tar.gz
volse-hubzilla-94290102b6e1b29b29c58318670da797394550c1.tar.bz2
volse-hubzilla-94290102b6e1b29b29c58318670da797394550c1.zip
tested extensible permissions by adding wiki permissions. Discovered a couple of issues that needed attention in the process.
Diffstat (limited to 'Zotlabs/Access/Permissions.php')
-rw-r--r--Zotlabs/Access/Permissions.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/Zotlabs/Access/Permissions.php b/Zotlabs/Access/Permissions.php
index 5fded5f03..81408f122 100644
--- a/Zotlabs/Access/Permissions.php
+++ b/Zotlabs/Access/Permissions.php
@@ -36,7 +36,7 @@ class Permissions {
static public function version() {
// This must match the version in PermissionRoles.php before permission updates can run.
- return 1;
+ return 2;
}
@@ -50,7 +50,9 @@ class Permissions {
'view_storage' => t('Can view my file storage and photos'),
'write_storage' => t('Can upload/modify my file storage and photos'),
'view_pages' => t('Can view my channel webpages'),
+ 'view_wiki' => t('Can view my wiki pages'),
'write_pages' => t('Can create/edit my channel webpages'),
+ 'write_wiki' => t('Can write to my wiki pages'),
'post_wall' => t('Can post on my channel (wall) page'),
'post_comments' => t('Can comment on or like my posts'),
'post_mail' => t('Can send me private mail messages'),