feat: workspace manage role (#3335)

This commit is contained in:
shaohuzhang1 2025-06-20 17:26:47 +08:00 committed by GitHub
parent 2336f381c1
commit f303fc4594
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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