Fix some permissions problems still around due to some usage of scopes as strings.

This commit is contained in:
jakedt 2014-03-19 18:21:58 -04:00
parent 3b7b12085d
commit 0992c8a47e
4 changed files with 12 additions and 6 deletions

View file

@ -217,7 +217,7 @@ def on_identity_loaded(sender, identity):
elif identity.auth_type == 'username':
logger.debug('Switching username permission to deferred object: %s', identity.id)
switch_to_deferred = QuayDeferredPermissionUser(identity.id, 'username', {'direct_user_login'})
switch_to_deferred = QuayDeferredPermissionUser(identity.id, 'username', {scopes.DIRECT_LOGIN})
identity_changed.send(app, identity=switch_to_deferred)
elif identity.auth_type == 'token':