Permalink
Browse files

Removed staff logic

  • Loading branch information...
1 parent c4de329 commit 22b8be8832d821e67126ef28285feb9202e7a62b @dustball dustball committed Aug 18, 2010
Showing with 2 additions and 4 deletions.
  1. +2 −4 utils.py
View
@@ -97,7 +97,6 @@ def __init__(self, user=None, event=None):
self.user = user
self.event = event
self.is_admin = False
- self.is_staff = False
self.is_owner = False
self.can_approve = False
self.can_cancel = False
@@ -107,14 +106,13 @@ def __init__(self, user=None, event=None):
if self.user:
self.is_admin = username(self.user) in dojo('/groups/events')
- self.is_staff = username(user) in dojo('/groups/staff')
if self.event:
self.is_owner = (self.user == self.event.member)
self.can_approve = (self.event.status in ['pending'] and self.is_admin
and not self.is_owner)
self.can_cancel = self.is_admin or self.is_owner
self.can_edit = self.is_admin or self.is_owner
self.can_staff = (self.event.status in ['pending', 'understaffed', 'approved']
- and self.is_staff and self.user not in self.event.staff)
+ and self.user not in self.event.staff)
self.can_unstaff = (self.event.status not in ['canceled', 'deleted']
- and self.is_staff and self.user in self.event.staff)
+ and self.user in self.event.staff)

0 comments on commit 22b8be8

Please sign in to comment.