[Mpuls-commits] r5659 - waska/trunk/waskaweb/controllers
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Nov 24 20:40:20 CET 2011
Author: bh
Date: 2011-11-24 20:40:20 +0100 (Thu, 24 Nov 2011)
New Revision: 5659
Modified:
waska/trunk/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/trunk/waskaweb/controllers/privacy.py
===================================================================
--- waska/trunk/waskaweb/controllers/privacy.py 2011-11-24 19:39:24 UTC (rev 5658)
+++ waska/trunk/waskaweb/controllers/privacy.py 2011-11-24 19:40:20 UTC (rev 5659)
@@ -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