[Mpuls-commits] r5610 - base/trunk/mpulsweb/controllers
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Fri Nov 18 17:48:05 CET 2011
Author: bh
Date: 2011-11-18 17:47:58 +0100 (Fri, 18 Nov 2011)
New Revision: 5610
Modified:
base/trunk/mpulsweb/controllers/casedocument.py
Log:
Do not check editability in the casedocument controller where appropriate.
At this point this only applies to the overview action where _loadCase
is now called with read_only=True. The other methods should at least be
covered by the database which only allows changes to documents for cases
where the user is editor or standin.
Modified: base/trunk/mpulsweb/controllers/casedocument.py
===================================================================
--- base/trunk/mpulsweb/controllers/casedocument.py 2011-11-18 16:17:48 UTC (rev 5609)
+++ base/trunk/mpulsweb/controllers/casedocument.py 2011-11-18 16:47:58 UTC (rev 5610)
@@ -29,7 +29,7 @@
@checkRole(('admin', 'cm'))
def overview(self, id):
id = self._checkInt(id)
- case = self._loadCase(id)
+ case = self._loadCase(id, read_only=True)
c.files = case.getDocuments()
return render('/documents/case_overview.mako')
More information about the Mpuls-commits
mailing list