updates to client role
This commit is contained in:
@@ -17,10 +17,10 @@ export async function createRts(
|
||||
input: CreateRtsInput,
|
||||
user: AuthenticatedUser
|
||||
) {
|
||||
let defaultClient = null;
|
||||
let defaultClient = input.client;
|
||||
const userInDb = await getUser(user.userId);
|
||||
if (userInDb && userInDb.orgId) {
|
||||
defaultClient = userInDb.orgId;
|
||||
defaultClient = userInDb.orgId.toString();
|
||||
}
|
||||
|
||||
return await rtsModel.create({
|
||||
|
||||
@@ -107,6 +107,8 @@ export const rules: Record<
|
||||
"permit:read",
|
||||
"file:upload",
|
||||
"file:download",
|
||||
"rts:read",
|
||||
"rts:write",
|
||||
"view:read",
|
||||
"view:write",
|
||||
"view:delete",
|
||||
|
||||
Reference in New Issue
Block a user