mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
removing application related roles
This commit is contained in:
parent
51d46213c2
commit
b3075cf1bc
@ -438,10 +438,10 @@ public class RoleImpl implements org.wso2.carbon.device.mgt.jaxrs.api.Role {
|
||||
String msg = "Error occurred while retrieving the list of user roles.";
|
||||
throw new MDMAPIException(msg, e);
|
||||
}
|
||||
// removing all internal roles and roles created for Service-providers
|
||||
// removing all internal roles, roles created for Service-providers and application related roles.
|
||||
List<String> filteredRoles = new ArrayList<>();
|
||||
for (String role : roles) {
|
||||
if (!(role.startsWith("Internal/") || role.startsWith("Authentication/"))) {
|
||||
if (!(role.startsWith("Internal/") || role.startsWith("Authentication/") || role.startsWith("Application/"))) {
|
||||
filteredRoles.add(role);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user