# HG changeset patch # User Mads Kiilerich # Date 2016-10-24 15:18:51 # Node ID 226e0154da46d2ebdee62973121200c71767c099 # Parent 5e5496d63785af992205165dabfade78da6cf904 auth: when logging HasPermissionAny, make it clear that the scope is global, not unknown diff --git a/kallithea/lib/auth.py b/kallithea/lib/auth.py --- a/kallithea/lib/auth.py +++ b/kallithea/lib/auth.py @@ -972,6 +972,9 @@ class HasPermissionAny(PermsFunction): return True return False + def _scope(self): + return 'global' + class HasRepoPermissionAny(PermsFunction): def __call__(self, repo_name=None, check_location=''):