Merge branch 'master' of ssh://repository.entgra.net:222/community/device-mgt-core into apim420

synced-apim420
Pasindu Rupasinghe 1 year ago
commit c7494bcd81

@ -58,7 +58,7 @@ import javax.ws.rs.core.Response;
description = "Add, Edit or View a Device Type",
key = "dm:admin:device-type:modify",
roles = {"Internal/devicemgt-admin"},
permissions = {"/device-mgt/admin/device-type"}
permissions = {"/device-mgt/admin/device-type/modify"}
),
@Scope(
name = "Getting Details of a Device Type",

@ -361,7 +361,8 @@ public class RoleManagementServiceImpl implements RoleManagementService {
for (UIPermissionNode node : permissionNode.getNodeList()) {
if (Constants.Permission.LOGIN.equals(node.getResourcePath()) ||
Constants.Permission.DEVICE_MGT.equals(node.getResourcePath()) ||
Constants.Permission.APP_MGT.equals(node.getResourcePath())) {
Constants.Permission.APP_MGT.equals(node.getResourcePath()) ||
Constants.Permission.TENANT.equals(node.getResourcePath())) {
deviceMgtPermissionsList.add(node);
}
}

@ -84,6 +84,7 @@ public class Constants {
public static final String LOGIN = "/permission/admin/login";
public static final String DEVICE_MGT = "/permission/admin/device-mgt";
public static final String APP_MGT = "/permission/admin/app-mgt";
public static final String TENANT = "/permission/admin/tenants";
}
}

@ -318,6 +318,7 @@
<Scope>dm:metadata:create</Scope>
<Scope>dm:metadata:update</Scope>
<Scope>and:ops:add-google-acc</Scope>
<Scope>and:ops:authenticate-acc</Scope>
<Scope>and:ops:update-default-sim</Scope>
<Scope>and:ops:add-google-acc</Scope>
<Scope>and:ops:device-info</Scope>

Loading…
Cancel
Save