[Mpuls-commits] r5586 - base/trunk/mpulsweb/model
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Wed Nov 16 09:18:33 CET 2011
Author: torsten
Date: 2011-11-16 09:18:32 +0100 (Wed, 16 Nov 2011)
New Revision: 5586
Modified:
base/trunk/mpulsweb/model/case.py
Log:
Issue2610: Added new fuction "user_is_editor"
Modified: base/trunk/mpulsweb/model/case.py
===================================================================
--- base/trunk/mpulsweb/model/case.py 2011-11-15 15:35:03 UTC (rev 5585)
+++ base/trunk/mpulsweb/model/case.py 2011-11-16 08:18:32 UTC (rev 5586)
@@ -961,6 +961,10 @@
raise
return []
+ def user_is_editor(self, uid):
+ """Returns true if the given user id is the id of the editor of the case"""
+ return self.editor_id == uid
+
def getEditor(self):
"""Returns the editor of the case"""
return UserObject(self.editor)
More information about the Mpuls-commits
mailing list