Adding promoting to owner
This commit is contained in:
@@ -415,6 +415,10 @@ export const updateWorkspaceMemberRole = async ({
|
||||
SET role = $3
|
||||
WHERE id = $1
|
||||
AND workspace_id = $2
|
||||
AND (
|
||||
$3 <> 'owner'
|
||||
OR $4 = TRUE
|
||||
)
|
||||
AND (
|
||||
role <> 'owner'
|
||||
OR (
|
||||
|
||||
Reference in New Issue
Block a user