Replace pattern "user instanceof IdentifiedUser" with method call
Change-Id: Iac3af1340206ffd8f10db133bca5eab1f85926b6
This commit is contained in:
committed by
Shawn Pearce
parent
cd4be95d6e
commit
a35f8a20ab
@@ -126,7 +126,7 @@ public class LdapGroupBackend implements GroupBackend {
|
||||
|
||||
String groupDn = uuid.get().substring(LDAP_UUID.length());
|
||||
CurrentUser user = userProvider.get();
|
||||
if (!(user instanceof IdentifiedUser)
|
||||
if (!(user.isIdentifiedUser())
|
||||
|| !membershipsOf((IdentifiedUser) user).contains(uuid)) {
|
||||
try {
|
||||
if (!existsCache.get(groupDn)) {
|
||||
|
||||
Reference in New Issue
Block a user