Add lookup and invite commands to the admin AS interface
This commit is contained in:
@@ -37,10 +37,7 @@ import org.slf4j.LoggerFactory;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.URISyntaxException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
import java.util.*;
|
||||
import java.util.function.Function;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
@@ -113,4 +110,8 @@ public class ProfileManager {
|
||||
}
|
||||
}
|
||||
|
||||
public boolean hasAnyRole(_MatrixID user, List<String> requiredRoles) {
|
||||
return !requiredRoles.isEmpty() || Collections.disjoint(getRoles(user), requiredRoles);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user