mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Modify permission of operation status update
(cherry picked from commit 31c25de956)
This commit is contained in:
parent
cc602a03bd
commit
922c775cfa
@ -165,6 +165,13 @@ import java.util.Map;
|
||||
roles = {"Internal/devicemgt-user"},
|
||||
permissions = {"/device-mgt/devices/change-status"}
|
||||
),
|
||||
@Scope(
|
||||
name = "Update status of a given operation",
|
||||
description = "Updates the status of a given operation of a given device",
|
||||
key = "dm:devices:ops:status:update",
|
||||
roles = {"Internal/devicemgt-user"},
|
||||
permissions = {"/device-mgt/devices/operations/status-update"}
|
||||
),
|
||||
@Scope(
|
||||
name = "Enroll Device",
|
||||
description = "Register a device",
|
||||
@ -2714,12 +2721,12 @@ public interface DeviceManagementService {
|
||||
@ApiOperation(
|
||||
produces = MediaType.APPLICATION_JSON,
|
||||
httpMethod = "PUT",
|
||||
value = "Update status of a given opeation",
|
||||
value = "Update status of a given operation",
|
||||
notes = "Updates the status of a given operation of a given device in Entgra IoT Server.",
|
||||
tags = "Device Management",
|
||||
extensions = {
|
||||
@Extension(properties = {
|
||||
@ExtensionProperty(name = Constants.SCOPE, value = "dm:devices:ops:view")
|
||||
@ExtensionProperty(name = Constants.SCOPE, value = "dm:devices:ops:status:update")
|
||||
})
|
||||
}
|
||||
)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user