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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Nov 16 09:20:01 CET 2011


Author: torsten
Date: 2011-11-16 09:20:01 +0100 (Wed, 16 Nov 2011)
New Revision: 5587

Modified:
   base/trunk/mpulsweb/controllers/case_overview.py
Log:
Use new function "user_is_editor" to check if the current user is editor if
the case.


Modified: base/trunk/mpulsweb/controllers/case_overview.py
===================================================================
--- base/trunk/mpulsweb/controllers/case_overview.py	2011-11-16 08:18:32 UTC (rev 5586)
+++ base/trunk/mpulsweb/controllers/case_overview.py	2011-11-16 08:20:01 UTC (rev 5587)
@@ -118,7 +118,7 @@
         #count num of cases
         c.count_all = len([x for x in cases.getDatasets()])
         c.count_own = len([x for x in cases.getDatasets()
-                           if x.editor_id == user.id])
+                           if x.user_is_editor(user.id)])
         c.count_standin = c.count_all - c.count_own
         c.count_anon = len([x for x in cases.getDatasets()
                                 if x.getState().getState() == 5])



More information about the Mpuls-commits mailing list