# HG changeset patch # User Julien Cristau # Date 1389876626 -3600 # Node ID 8aa6c923d6c0a8d391ab750e4f8ef29799544640 # Parent 6aec72169ee1a6a83900e8960364ee966be610a1 [security] Add comment to check_entity_attributes shortcut Make it clear that it is only an optimization. Related to #3444095. diff -r 6aec72169ee1 -r 8aa6c923d6c0 hooks/security.py --- a/hooks/security.py Thu Jan 16 12:21:05 2014 +0100 +++ b/hooks/security.py Thu Jan 16 13:50:26 2014 +0100 @@ -60,7 +60,8 @@ # nothing. continue if perms == (): - # That means an immutable attribute. + # That means an immutable attribute; as an optimization, avoid + # going through check_perm. raise Unauthorized(action, str(rdef)) rdef.check_perm(session, action, eid=eid)