the submitter of an application must not edit the application, after it was accepted
This commit is contained in:
parent
391a10bb03
commit
6a0bdb7aa2
@ -41,7 +41,7 @@ class Application(models.Model, SlideMixin):
|
|||||||
('noc', _('Not Concerned')),
|
('noc', _('Not Concerned')),
|
||||||
('com', _('Commited a bill')),
|
('com', _('Commited a bill')),
|
||||||
('nop', _('Rejected (not permitted)')),
|
('nop', _('Rejected (not permitted)')),
|
||||||
('rev', _('Needs Review')),
|
('rev', _('Needs Review')), # Where is this status used?
|
||||||
#additional actions:
|
#additional actions:
|
||||||
# edit
|
# edit
|
||||||
# delete
|
# delete
|
||||||
@ -366,7 +366,8 @@ class Application(models.Model, SlideMixin):
|
|||||||
actions.append("unsupport")
|
actions.append("unsupport")
|
||||||
|
|
||||||
#Check if the user can edit the application
|
#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"):
|
or user.has_perm("application.can_manage_application"):
|
||||||
actions.append("edit")
|
actions.append("edit")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user