diff --git a/colleges/permissions.py b/colleges/permissions.py index cd67ccbd87274b017b8f19380120c66f07b75ca6..615d6457189a0cdd4f19cd80d3acaf84812113b9 100644 --- a/colleges/permissions.py +++ b/colleges/permissions.py @@ -2,10 +2,17 @@ from django.contrib.auth.decorators import user_passes_test def fellowship_required(): - """Require user to have any Fellowship.""" + """ + Require user to have any Fellowship or Administrational permissions. + """ def test(u): if u.is_authenticated(): if hasattr(u, 'contributor') and u.contributor.fellowships.exists(): + # Fellow + return True + + if u.has_perm('scipost.can_view_pool'): + # Administrator return True return False return user_passes_test(test)