def has_manage_schedule_permission(user, event):
    if user.is_superuser:
        return True
    else:
        return event.user_in_jury(user)

@@ -50,10 +50,14 @@
     
-if
+return
  use
@@ -74,54 +74,11 @@
 user
-:%0A        return True%0A    else:%0A        return
+ or
  eve

Use single return statement