[PATCH saem] [security] Fix 'add' permission of Agent and OrganizationUnit

Denis Laxalde denis.laxalde at logilab.fr
Fri May 19 11:15:22 CEST 2017


Sylvain Thenault a écrit :
> # HG changeset patch
> # User Sylvain Thénault <sylvain.thenault at logilab.fr>
> # Date 1495137405 -7200
> #      Thu May 18 21:56:45 2017 +0200
> # Node ID 0674ed9b8f37f4a26cef26d81ff61d56f61edf50
> # Parent  7aca90bfbdf3aae98f434400e1368428443441bf
> # Available At http://hg.logilab.org/review/cubes/saem_ref
> #              hg pull http://hg.logilab.org/review/cubes/saem_ref -r 0674ed9b8f37
> [security] Fix 'add' permission of Agent and OrganizationUnit
>
> We should not depend on entity's authority since it disallow checking
> permission a priori in the UI to insert add link, since the entity is not
> created yet.
>
> No test added, but agent / organization unit creation is tested by security test
> which are still green after this change so this should be enough to demonstrate
> it is fine.

Applied.



More information about the saem-devel mailing list