equal
deleted
inserted
replaced
358 for tschema in targetschemas: |
358 for tschema in targetschemas: |
359 if not tag in self.etype_get(eschema, rschema, role, tschema): |
359 if not tag in self.etype_get(eschema, rschema, role, tschema): |
360 continue |
360 continue |
361 rdef = rschema.role_rdef(eschema, tschema, role) |
361 rdef = rschema.role_rdef(eschema, tschema, role) |
362 if not ((not strict and rdef.has_local_role(permission)) or |
362 if not ((not strict and rdef.has_local_role(permission)) or |
363 rdef.has_perm(entity.req, permission, fromeid=eid)): |
363 rdef.has_perm(entity._cw, permission, fromeid=eid)): |
364 continue |
364 continue |
365 _targetschemas.append(tschema) |
365 _targetschemas.append(tschema) |
366 if not _targetschemas: |
366 if not _targetschemas: |
367 continue |
367 continue |
368 targetschemas = _targetschemas |
368 targetschemas = _targetschemas |