From 6a0bdb7aa2dc82be9ab593e0ade5314f376bb423 Mon Sep 17 00:00:00 2001 From: Oskar Hahn Date: Sun, 24 Jun 2012 21:52:21 +0200 Subject: [PATCH] the submitter of an application must not edit the application, after it was accepted --- openslides/application/models.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/openslides/application/models.py b/openslides/application/models.py index 0e0247e01..3f483f063 100644 --- a/openslides/application/models.py +++ b/openslides/application/models.py @@ -41,7 +41,7 @@ class Application(models.Model, SlideMixin): ('noc', _('Not Concerned')), ('com', _('Commited a bill')), ('nop', _('Rejected (not permitted)')), - ('rev', _('Needs Review')), + ('rev', _('Needs Review')), # Where is this status used? #additional actions: # edit # delete @@ -366,7 +366,8 @@ class Application(models.Model, SlideMixin): actions.append("unsupport") #Check if the user can edit the application - if user == self.submitter \ + if (user == self.submitter \ + and (self.status in ('pub', 'per'))) \ or user.has_perm("application.can_manage_application"): actions.append("edit")