cubicweb #342831 jpl-extra : clients should have the possibility to move Tickets into a Version [resolved]

Clients have no possibility to move Tickets into a Version while modifying them.

The problem must come from the "done_in" add permission : ('managers', 'staff', restricted_oexpr('O in_state ST, ST name "planned"', 'client'),).

Here is the approximate call stack :

cubicweb/web/views/baseforms.py (editable_attributes(self, entity))

cubicweb/entities/__init__.py (relations_by_category(self, categories=None, permission=None ))

cubicweb/entities/__init__.py(rschema.has_perm(self.req, permission, fromeid=eid)

cubicweb/schema.py (ERSchema_has_perm)

The following test fails in cubicweb/schema.py RRQLExpression.check

if 'O' in self.rqlst.defined_vars:
    if toeid is None:
       return False
priorityimportant
typebug
done in3.5.0
load1.000
load left0.000
closed by<not specified>