bug fix
This commit is contained in:
parent
35eac9e66f
commit
05d6aef53c
|
@ -46,10 +46,16 @@ public class WorkspaceController {
|
||||||
|
|
||||||
@PostMapping("special/update")
|
@PostMapping("special/update")
|
||||||
@RequiresRoles(RoleConstants.ADMIN)
|
@RequiresRoles(RoleConstants.ADMIN)
|
||||||
public void updateWorkspacebyAdmin(@RequestBody Workspace workspace) {
|
public void updateWorkspaceByAdmin(@RequestBody Workspace workspace) {
|
||||||
workspaceService.updateWorkspacebyAdmin(workspace);
|
workspaceService.updateWorkspacebyAdmin(workspace);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@GetMapping("special/delete/{workspaceId}")
|
||||||
|
@RequiresRoles(RoleConstants.ADMIN)
|
||||||
|
public void deleteWorkspaceByAdmin(@PathVariable String workspaceId) {
|
||||||
|
workspaceService.deleteWorkspace(workspaceId);
|
||||||
|
}
|
||||||
|
|
||||||
@GetMapping("delete/{workspaceId}")
|
@GetMapping("delete/{workspaceId}")
|
||||||
@RequiresRoles(RoleConstants.ORG_ADMIN)
|
@RequiresRoles(RoleConstants.ORG_ADMIN)
|
||||||
public void deleteWorkspace(@PathVariable String workspaceId) {
|
public void deleteWorkspace(@PathVariable String workspaceId) {
|
||||||
|
|
|
@ -338,7 +338,7 @@
|
||||||
cancelButtonText: this.$t('commons.cancel'),
|
cancelButtonText: this.$t('commons.cancel'),
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
this.$get('/workspace/delete/' + row.id, () => {
|
this.$get('/workspace/special/delete/' + row.id, () => {
|
||||||
Message.success(this.$t('commons.delete_success'));
|
Message.success(this.$t('commons.delete_success'));
|
||||||
this.list();
|
this.list();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue