diff --git a/src/authentic2_pratic/models.py b/src/authentic2_pratic/models.py index ed7b66f..a6cc332 100644 --- a/src/authentic2_pratic/models.py +++ b/src/authentic2_pratic/models.py @@ -458,6 +458,10 @@ def authorize_service_cb(request, user, audience, attributes, **kwargs): logger.info('%r of collectivity %r is authorized to connect on %r', unicode(user), unicode(collectivity), audience) return authz(True) + elif user.is_admin: + logger.info('%r is authorized to connect on %r because he is a ' + 'local admin', unicode(user), audience) + return authz(True) elif user.is_superuser: logger.info('%r is authorized to connect on %r because he is a ' 'superuser', unicode(user), audience)