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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Nov 18 18:18:35 CET 2011


Author: bh
Date: 2011-11-18 18:18:30 +0100 (Fri, 18 Nov 2011)
New Revision: 5613

Modified:
   base/trunk/mpulsweb/controllers/logbook.py
Log:
Do not check editability in the logbook controller where appropriate.
This change only covers places wehre the _loadCase method is called. In
the logbook controller, only the printout action needs to changed so
that _loadCase is called with read_only=True. 

Implements part of the access restrictions for mpuls/issue2367.


Modified: base/trunk/mpulsweb/controllers/logbook.py
===================================================================
--- base/trunk/mpulsweb/controllers/logbook.py	2011-11-18 17:12:47 UTC (rev 5612)
+++ base/trunk/mpulsweb/controllers/logbook.py	2011-11-18 17:18:30 UTC (rev 5613)
@@ -262,7 +262,7 @@
         c.logbook = logbook
 
         # Load case
-        case = self._loadCase(logbook.getMasterId())
+        case = self._loadCase(logbook.getMasterId(), read_only=True)
         c.case = case
 
         return render('/logbook/overview_print.mako')



More information about the Mpuls-commits mailing list