equal
deleted
inserted
replaced
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 |