diff --git a/pandora/user/models.py b/pandora/user/models.py index 7f0a51a8..4234ab45 100644 --- a/pandora/user/models.py +++ b/pandora/user/models.py @@ -436,8 +436,7 @@ def has_capability(user, capability): level = 'guest' else: level = user.profile.get_level() - return level in settings.CONFIG['capabilities'][capability] \ - and settings.CONFIG['capabilities'][capability][level] + return settings.CONFIG['capabilities'].get(capability, {}).get(level) def merge_users(old, new): old.annotations.all().update(user=new)