Changed request "has_permission" method call
authorThierry Florac <thierry.florac@onf.fr>
Wed, 12 Jul 2017 13:51:49 +0200
changeset 193 c96890af2cb9
parent 192 b92cfa6a598d
child 194 157c4f274b91
Changed request "has_permission" method call
src/pyams_skin/table.py
--- a/src/pyams_skin/table.py	Wed Jul 12 13:48:39 2017 +0200
+++ b/src/pyams_skin/table.py	Wed Jul 12 13:51:49 2017 +0200
@@ -215,7 +215,7 @@
     def has_permission(self, item):
         if not self.permission:
             return True
-        return self.request.has_permission(self.permission, context=item)
+        return self.request.has_permission(self.permission, item)
 
     def get_url(self, item):
         return absolute_url(item, self.request, self.url)