mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-29 07:01:04 +03:00
New Feature: Ability to change role for a workspace user. (#4616)
* New Feature: Ability to change role for a workspace user. * reverting some of the changes in workspace-user.service.ts and minor code cleanup in the ui components. * chore: refactor updateWorkspaceUser function queryRunner handling --------- Co-authored-by: chungyau97 <chungyau97@gmail.com>
This commit is contained in:
@@ -16,6 +16,8 @@ const deleteWorkspace = (id) => client.delete(`/workspace/${id}`)
|
||||
const getSharedWorkspacesForItem = (id) => client.get(`/workspace/shared/${id}`)
|
||||
const setSharedWorkspacesForItem = (id, body) => client.post(`/workspace/shared/${id}`, body)
|
||||
|
||||
const updateWorkspaceUserRole = (body) => client.put(`/workspaceuser`, body)
|
||||
|
||||
export default {
|
||||
getAllWorkspacesByOrganizationId,
|
||||
getWorkspaceById,
|
||||
@@ -26,5 +28,7 @@ export default {
|
||||
linkUsers,
|
||||
switchWorkspace,
|
||||
getSharedWorkspacesForItem,
|
||||
setSharedWorkspacesForItem
|
||||
setSharedWorkspacesForItem,
|
||||
|
||||
updateWorkspaceUserRole
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user