equal
deleted
inserted
replaced
58 # this object as a marker saying "no specific" |
58 # this object as a marker saying "no specific" |
59 # permission rule for this attribute. Thus we just do |
59 # permission rule for this attribute. Thus we just do |
60 # nothing. |
60 # nothing. |
61 continue |
61 continue |
62 if perms == (): |
62 if perms == (): |
63 # That means an immutable attribute. |
63 # That means an immutable attribute; as an optimization, avoid |
|
64 # going through check_perm. |
64 raise Unauthorized(action, str(rdef)) |
65 raise Unauthorized(action, str(rdef)) |
65 rdef.check_perm(session, action, eid=eid) |
66 rdef.check_perm(session, action, eid=eid) |
66 |
67 |
67 |
68 |
68 class CheckEntityPermissionOp(hook.DataOperationMixIn, hook.LateOperation): |
69 class CheckEntityPermissionOp(hook.DataOperationMixIn, hook.LateOperation): |