fix:销毁权限
This commit is contained in:
parent
34e4e274a8
commit
e9240a38d6
@ -44,7 +44,7 @@ public class LmkController {
|
||||
@PostMapping("/masterKey/destroy")
|
||||
@Operation(summary = "销毁主密钥", description = "销毁当前密码卡中的主密钥,失败直接抛出异常。")
|
||||
@ReplayProtected
|
||||
@RequireInternalAuth(role = RoleCode.KEY_ADMIN, authLevel = AuthLevel.FULL)
|
||||
@RequireInternalAuth(role = RoleCode.SUPER_ADMIN, authLevel = AuthLevel.FULL)
|
||||
public ApiResponse<Void> destroyMasterKey() {
|
||||
//销毁主密钥、内部密钥、用户密钥
|
||||
lmkService.destroyMasterKey();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user