ADD: add a cleared event status to indicate the financal clearance.
This commit is contained in:
@@ -30,6 +30,7 @@ DEFAULT_EVENT_STATI = {
|
||||
'published_web': (79, _(u'Veröffentlicht (Web)'), 'success'),
|
||||
'published': (80, _(u'Veröffentlicht'), 'success'),
|
||||
'expired': (100, _(u'Ausgelaufen'), None),
|
||||
'cleared': (110, _(u'Abgerechnet'), 'black'),
|
||||
}
|
||||
|
||||
|
||||
@@ -429,6 +430,9 @@ class BasicWorkflow(object):
|
||||
elif permission == 'publish':
|
||||
if has_role(user, 'publisher'):
|
||||
return True
|
||||
elif permission == 'clear':
|
||||
if has_role(user, 'manager_super'):
|
||||
return True
|
||||
elif permission == 'update':
|
||||
if not self.has_reached_status('submitted'):
|
||||
if user == event.owner:
|
||||
|
||||
Reference in New Issue
Block a user