diff --git a/views.py b/views.py index fc1bcd923246717e21ef3a568ae698d84d561396_dmlld3MucHk=..bab5f515dc70d966592a1d7da25c2ee3113f3821_dmlld3MucHk= 100644 --- a/views.py +++ b/views.py @@ -14,7 +14,7 @@ from simplejson import dumps -from cubicweb.selectors import (one_line_rset, but_etype, implements, +from cubicweb.selectors import (one_line_rset, implements, has_permission, relation_possible, yes, match_kwargs, score_entity, authenticated_user) @@ -295,7 +295,7 @@ class AddCommentAction(LinkToEntityAction): """add comment is like reply for everything but Comment""" __regid__ = 'reply_comment' - __select__ = LinkToEntityAction.__select__ & but_etype('Comment') + __select__ = LinkToEntityAction.__select__ & ~implements('Comment') etype = 'Comment' rtype = 'comments'