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

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


Author: bh
Date: 2011-11-24 21:25:06 +0100 (Thu, 24 Nov 2011)
New Revision: 5666

Modified:
   waska/branches/waska3/waskaweb/controllers/privacy.py
Log:
Do not check editability in the privacy controller where appropriate.
This means calling _loadCase with read_only=True in the
printDiscretionStatement action.

Implements part of the access restrictions for mpuls/issue2367.


Modified: waska/branches/waska3/waskaweb/controllers/privacy.py
===================================================================
--- waska/branches/waska3/waskaweb/controllers/privacy.py	2011-11-24 20:24:14 UTC (rev 5665)
+++ waska/branches/waska3/waskaweb/controllers/privacy.py	2011-11-24 20:25:06 UTC (rev 5666)
@@ -12,7 +12,7 @@
     def printDiscretionStatement(self, id):
         """WASKA-specific Discretion Statement"""
         id = self._checkInt(id)
-        case = self._loadCase(id)
+        case = self._loadCase(id, read_only=True)
         statement = case.getDiscretionStatement()
         c.content = statement.fillout()
         return render('privacy/default_statement.mako')



More information about the Mpuls-commits mailing list