[Mpuls-commits] r5658 - waska/trunk/waskaweb/controllers
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Nov 24 20:39:24 CET 2011
Author: bh
Date: 2011-11-24 20:39:24 +0100 (Thu, 24 Nov 2011)
New Revision: 5658
Modified:
waska/trunk/waskaweb/controllers/case.py
Log:
Do not check editability in the case controller where appropriate.
This means calling _loadCase with read_only=True in the
print_AidplanStatement action.
Implements part of the access restrictions for mpuls/issue2367.
Modified: waska/trunk/waskaweb/controllers/case.py
===================================================================
--- waska/trunk/waskaweb/controllers/case.py 2011-11-24 19:36:46 UTC (rev 5657)
+++ waska/trunk/waskaweb/controllers/case.py 2011-11-24 19:39:24 UTC (rev 5658)
@@ -57,7 +57,7 @@
# formularpage. Content of the formularpage (c.formular) will be user
# to render the aidplan.
NavigationController().select_branch('rg_unterstuetzungsangebote:%s' % id)
- c.case = self._loadCase(id)
+ c.case = self._loadCase(id, read_only=True)
return render('/casemanagement/aidplan.mako')
# vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8:
More information about the Mpuls-commits
mailing list