src/pyams_skin/table.py
changeset 580 5229fccd92a7
parent 384 2acc13873f0d
--- a/src/pyams_skin/table.py	Thu Aug 05 09:22:02 2021 +0200
+++ b/src/pyams_skin/table.py	Fri Aug 06 14:28:51 2021 +0200
@@ -384,8 +384,7 @@
         permission = self.permission
         if permission and not self.request.has_permission(permission, context=item):
             return self.get_icon(item)
-        else:
-            return super(AttributeSwitcherColumn, self).renderCell(item)
+        return super(AttributeSwitcherColumn, self).renderCell(item)
 
 
 class VisibilitySwitcherColumn(AttributeSwitcherColumn):