[Mpuls-commits] r5663 - waska/branches/waska3/waskaweb/controllers

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Nov 24 21:22:14 CET 2011


Author: bh
Date: 2011-11-24 21:22:13 +0100 (Thu, 24 Nov 2011)
New Revision: 5663

Modified:
   waska/branches/waska3/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/branches/waska3/waskaweb/controllers/case.py
===================================================================
--- waska/branches/waska3/waskaweb/controllers/case.py	2011-11-24 20:21:17 UTC (rev 5662)
+++ waska/branches/waska3/waskaweb/controllers/case.py	2011-11-24 20:22:13 UTC (rev 5663)
@@ -50,7 +50,7 @@
         # 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')
 
     def _add_custom_fields(self):



More information about the Mpuls-commits mailing list