web/views/schema.py
branchstable
changeset 7780 a1d5365fefc1
parent 7750 251c7cce300e
child 7782 40a49f4350a5
--- a/web/views/schema.py	Tue Sep 13 14:41:53 2011 +0200
+++ b/web/views/schema.py	Tue Sep 13 14:48:24 2011 +0200
@@ -676,14 +676,6 @@
     def parent_entity(self):
         return self.entity.expression_of
 
-class CWPermissionIBreadCrumbsAdapter(ibreadcrumbs.IBreadCrumbsAdapter):
-    __select__ = is_instance('CWPermission')
-    def parent_entity(self):
-        # XXX useless with permission propagation
-        permissionof = getattr(self.entity, 'reverse_require_permission', ())
-        if len(permissionof) == 1:
-            return permissionof[0]
-
 
 # misc: facets, actions ########################################################