[Mpuls-commits] r4580 - base/trunk/mpulsweb/model

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Feb 4 14:56:06 CET 2011


Author: torsten
Date: 2011-02-04 14:56:05 +0100 (Fri, 04 Feb 2011)
New Revision: 4580

Modified:
   base/trunk/mpulsweb/model/user.py
Log:
* mpulsweb/model/user.py (User.isAdmin): Fixed issue105: compare with
	internationalized string of rolename.


Modified: base/trunk/mpulsweb/model/user.py
===================================================================
--- base/trunk/mpulsweb/model/user.py	2011-02-04 13:39:19 UTC (rev 4579)
+++ base/trunk/mpulsweb/model/user.py	2011-02-04 13:56:05 UTC (rev 4580)
@@ -346,7 +346,7 @@
         return self.needs_passrefresh
 
     def isAdmin(self):
-        return (self.getRole() == "Admin")
+        return (self.getRole() == _('role_admin'))
 
     def shortenedName(self):
         name = []



More information about the Mpuls-commits mailing list