From 73876e5774e1581e2b85c349705b0c7b61d6c9ee Mon Sep 17 00:00:00 2001 From: zotlabs Date: Thu, 1 Dec 2016 16:40:49 -0800 Subject: versioning for permission additions to ensure we're using the same set of files --- boot.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'boot.php') 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()); -- cgit v1.2.3