aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
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 /boot.php
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 'boot.php')
-rwxr-xr-xboot.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/boot.php b/boot.php
index 13ba73dbc..8e365703b 100755
--- a/boot.php
+++ b/boot.php
@@ -2454,6 +2454,11 @@ function cert_bad_email() {
function check_for_new_perms() {
+ // Do not execute if we are in the middle of a git update and the relevant versions don't match
+
+ if( \Zotlabs\Access\Permissions::version() != \Zotlabs\Access\PermissionRoles::version())
+ return;
+
$pregistered = get_config('system','perms');
$pcurrent = array_keys(\Zotlabs\Access\Permissions::Perms());