[Mpuls-commits] r5617 - base/trunk/mpulsweb/controllers

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Nov 18 20:38:43 CET 2011


Author: bh
Date: 2011-11-18 20:38:34 +0100 (Fri, 18 Nov 2011)
New Revision: 5617

Modified:
   base/trunk/mpulsweb/controllers/tags.py
Log:
Do not require editability in the tags controller where appropriate.
This change only covers places where the _loadCase method is called. In
the tags controller, this means the action overview now calls _loadCase
with read_only=True.

Implements part of the access restrictions for mpuls/issue2367.


Modified: base/trunk/mpulsweb/controllers/tags.py
===================================================================
--- base/trunk/mpulsweb/controllers/tags.py	2011-11-18 19:37:00 UTC (rev 5616)
+++ base/trunk/mpulsweb/controllers/tags.py	2011-11-18 19:38:34 UTC (rev 5617)
@@ -20,7 +20,7 @@
     def overview(self, id):
         defaults = {'tags': []}
         id = self._checkInt(id)
-        case = self._loadCase(id)
+        case = self._loadCase(id, read_only=True)
         c.tags = case.getTags()
         form = render('/tags/tags.mako')
         return formencode.htmlfill.render(form)



More information about the Mpuls-commits mailing list