Fix GroupControl check for isOwner()
This check was broken when groups were changed to use UUIDs for the
effective groups set of an IdentifiedUser. The check must pass the
new UUID type to contains() rather than the older Id type.
We cache the owner decision in case we get multiple calls are made to
this GroupControl. This happens in the loops that invoke the canSee()
methods for each element.
Change-Id: Ifaa6adb456183267fc8030a1fcb04c283b20e941
Signed-off-by: Shawn O. Pearce <sop@google.com>
1 file changed