feat: workspace manage role (#3335)
This commit is contained in:
parent
2336f381c1
commit
f303fc4594
@ -42,6 +42,14 @@ export class Permission {
|
|||||||
const { user } = useStore()
|
const { user } = useStore()
|
||||||
return `${this.permission}:/WORKSPACE/${user.getWorkspaceId()}`
|
return `${this.permission}:/WORKSPACE/${user.getWorkspaceId()}`
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* 自定义工作空间管理员权限
|
||||||
|
* @returns
|
||||||
|
*/
|
||||||
|
getWorkspacePermissionWorkspaceManageRole = () => {
|
||||||
|
const { user } = useStore()
|
||||||
|
return `${this.permission}:/WORKSPACE/${user.getWorkspaceId()}:ROLE/$WORKSPACE_MANAGE`
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* 工作空间资源权限
|
* 工作空间资源权限
|
||||||
* @param workspace_id 工作空间id
|
* @param workspace_id 工作空间id
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user