web/views/startup.py
changeset 3890 d7a270f50f54
parent 3720 5376aaadd16b
parent 3877 7ca53fc72a0a
child 4045 f4a52abb6f4f
--- a/web/views/startup.py	Sun Nov 08 21:53:18 2009 +0100
+++ b/web/views/startup.py	Fri Nov 20 19:35:54 2009 +0100
@@ -130,8 +130,7 @@
         """
         req = self._cw
         for eschema in eschemas:
-            if eschema.final or (not eschema.has_perm(req, 'read') and
-                                      not eschema.has_local_role('read')):
+            if eschema.final or not eschema.may_have_permission('read', req):
                 continue
             etype = eschema.type
             label = display_name(req, etype, 'plural')