mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-13 21:27:46 +02:00
Owners (#2183)
Signed-off-by: Denis Bykhov <80476319+BykhovDenis@users.noreply.github.com>
This commit is contained in:
@@ -23,6 +23,7 @@ import {
|
||||
dropWorkspace,
|
||||
getAccount,
|
||||
getWorkspace,
|
||||
setRole,
|
||||
listAccounts,
|
||||
listWorkspaces,
|
||||
upgradeWorkspace
|
||||
@@ -114,6 +115,14 @@ program
|
||||
})
|
||||
})
|
||||
|
||||
program
|
||||
.command('set-user-role <email> <workspace> <role>')
|
||||
.description('set user role')
|
||||
.action(async (email: string, workspace: string, role: number, cmd) => {
|
||||
console.log(`set user ${email} role for ${workspace}...`)
|
||||
await setRole(email, workspace, role)
|
||||
})
|
||||
|
||||
program
|
||||
.command('upgrade-workspace <name>')
|
||||
.description('upgrade workspace')
|
||||
|
||||
Reference in New Issue
Block a user