From 1a99f6f35fe1e9fad741edee389b16644c62dbe6 Mon Sep 17 00:00:00 2001 From: Fingercomp Date: Sun, 4 Sep 2016 22:28:42 +0700 Subject: [PATCH 1/2] One of those totally useless commits. --- hel/utils/authentication.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hel/utils/authentication.py b/hel/utils/authentication.py index 7276c7b..2805193 100644 --- a/hel/utils/authentication.py +++ b/hel/utils/authentication.py @@ -21,8 +21,8 @@ def effective_principals(self, request): principals += ['~' + x for x in user['groups']] if 'act_till' not in user and 'act_phrase' not in user: principals += ['activated'] - elif hasattr(request, 'no_permission_check') \ - and request.no_permission_check: + elif (hasattr(request, 'no_permission_check') + and request.no_permission_check): principals += ['~allperms'] return principals From 61469d8a97ed12ed302fb28818f649e03ad04ebb Mon Sep 17 00:00:00 2001 From: Fingercomp Date: Sun, 4 Sep 2016 22:34:19 +0700 Subject: [PATCH 2/2] Oopsie --- hel/utils/authentication.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hel/utils/authentication.py b/hel/utils/authentication.py index 2805193..905b5f0 100644 --- a/hel/utils/authentication.py +++ b/hel/utils/authentication.py @@ -21,8 +21,8 @@ def effective_principals(self, request): principals += ['~' + x for x in user['groups']] if 'act_till' not in user and 'act_phrase' not in user: principals += ['activated'] - elif (hasattr(request, 'no_permission_check') - and request.no_permission_check): + elif (hasattr(request, 'no_permission_check') and + request.no_permission_check): principals += ['~allperms'] return principals