Fix faulty behaviour in BLOCK permission
BLOCK can be overruled with ALLOW on the same project, however there
is a bug that happens when a child of the above project duplicates the
ALLOW permission, in this case the BLOCK will always win for the child,
even though the BLOCK was overruled in the parent.
This behaviour occurs because the ALLOW permission of the parent is
overridden by the ALLOW of the child, so when the BLOCK check occurs
the code thinks the permission should be blocked because it doesn't see
the ALLOW of the parent and BLOCK can only be overruled from the same
project.
Bug: issue 2995
Change-Id: Ib100deb181a0fdb07527a7242c4d4e8c4fe24b9b
3 files changed