schema.py
branchstable
changeset 4608 181c877b3048
parent 4607 55eab66c6592
child 4619 f4254586e867
equal deleted inserted replaced
4607:55eab66c6592 4608:181c877b3048
   254         return
   254         return
   255     # if 'owners' in allowed groups, check if the user actually owns this
   255     # if 'owners' in allowed groups, check if the user actually owns this
   256     # object, if so that's enough
   256     # object, if so that's enough
   257     if 'owners' in groups and (
   257     if 'owners' in groups and (
   258           kwargs.get('creating')
   258           kwargs.get('creating')
   259           or ('eid' in kwargs and session.user.owns(kwargs['eid'])):
   259           or ('eid' in kwargs and session.user.owns(kwargs['eid']))):
   260         return
   260         return
   261     # else if there is some rql expressions, check them
   261     # else if there is some rql expressions, check them
   262     if any(rqlexpr.check(session, **kwargs)
   262     if any(rqlexpr.check(session, **kwargs)
   263            for rqlexpr in self.get_rqlexprs(action)):
   263            for rqlexpr in self.get_rqlexprs(action)):
   264         return
   264         return