aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Access
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2016-12-01 16:40:49 -0800
committerzotlabs <mike@macgirvin.com>2016-12-01 16:40:49 -0800
commit73876e5774e1581e2b85c349705b0c7b61d6c9ee (patch)
tree94efdeb9f46f462e19e5de7cf4b8e289e06e4ccd /Zotlabs/Access
parent97e70d62bf52de9e8879f832cc2d53c74f9c27f3 (diff)
downloadvolse-hubzilla-73876e5774e1581e2b85c349705b0c7b61d6c9ee.tar.gz
volse-hubzilla-73876e5774e1581e2b85c349705b0c7b61d6c9ee.tar.bz2
volse-hubzilla-73876e5774e1581e2b85c349705b0c7b61d6c9ee.zip
versioning for permission additions to ensure we're using the same set of files
Diffstat (limited to 'Zotlabs/Access')
-rw-r--r--Zotlabs/Access/PermissionRoles.php3
-rw-r--r--Zotlabs/Access/Permissions.php6
2 files changed, 9 insertions, 0 deletions
diff --git a/Zotlabs/Access/PermissionRoles.php b/Zotlabs/Access/PermissionRoles.php
index 3878777cf..94c49c44f 100644
--- a/Zotlabs/Access/PermissionRoles.php
+++ b/Zotlabs/Access/PermissionRoles.php
@@ -7,6 +7,9 @@ use Zotlabs\Lib as Zlib;
class PermissionRoles {
+ static public function version() {
+ return 1;
+ }
static function role_perms($role) {
diff --git a/Zotlabs/Access/Permissions.php b/Zotlabs/Access/Permissions.php
index 1951f2f0f..ed21ab99d 100644
--- a/Zotlabs/Access/Permissions.php
+++ b/Zotlabs/Access/Permissions.php
@@ -21,6 +21,8 @@ class Permissions {
* 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.
*
+ * Update the version here and in PermissionRoles
+ *
*
* Permissions with 'view' in the name are considered read permissions. Anything
* else requires authentication. Read permission limits are PERMS_PUBLIC and anything else
@@ -32,6 +34,10 @@ class Permissions {
*
*/
+ static public function version() {
+ return 1;
+ }
+
static public function Perms($filter = '') {