Showing
1 changed file
with
2 additions
and
2 deletions
... | ... | @@ -59,7 +59,7 @@ public class TkRoleController extends BaseController { |
59 | 59 | } |
60 | 60 | |
61 | 61 | @DeleteMapping |
62 | - @PreAuthorize("@check.checkPermissions({},{'api:yt:role:delete'})") | |
62 | + @PreAuthorize("@check.checkPermissions({'SYS_ADMIN','PLATFORM_ADMIN','TENANT_ADMIN'},{'api:yt:role:delete'})") | |
63 | 63 | public void deleteRole(@RequestBody String[] ids) throws ThingsboardException { |
64 | 64 | roleService.deleteRole(ids,getCurrentUser().getCurrentTenantId()); |
65 | 65 | } |
... | ... | @@ -77,7 +77,7 @@ public class TkRoleController extends BaseController { |
77 | 77 | } |
78 | 78 | |
79 | 79 | @PostMapping("save_with_menu") |
80 | - @PreAuthorize("@check.checkPermissions({},{'api:yt:role:saveOrUpdateRoleInfoWithMenu:post','api:yt:role:saveOrUpdateRoleInfoWithMenu:update'})") | |
80 | + @PreAuthorize("@check.checkPermissions({'SYS_ADMIN','PLATFORM_ADMIN','TENANT_ADMIN'},{'api:yt:role:saveOrUpdateRoleInfoWithMenu:post','api:yt:role:saveOrUpdateRoleInfoWithMenu:update'})") | |
81 | 81 | public RoleDTO saveOrUpdateRoleInfoWithMenu(@RequestBody RoleReqDTO roleReqDTO) throws ThingsboardException { |
82 | 82 | return roleService.saveOrUpdateRoleInfoWithMenu( |
83 | 83 | roleReqDTO, | ... | ... |