Disable Impersonation Option (#2880)
* Disable Impersonation * Update Description Copy Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
1 parent
e16eee68b0
commit
1bf009f5f5
8 files changed
+117
-48
No files matched your search
@@ -44,6 +44,7 @@ async function getUserFromSession({
|
||||
hideBranding: true,
|
||||
avatar: true,
|
||||
twoFactorEnabled: true,
|
||||
disableImpersonation: true,
|
||||
identityProvider: true,
|
||||
brandColor: true,
|
||||
darkBrandColor: true,
|
||||
|
||||
@@ -86,6 +86,7 @@ const loggedInViewerRouter = createProtectedRouter()
|
||||
trialEndsAt: user.trialEndsAt,
|
||||
completedOnboarding: user.completedOnboarding,
|
||||
twoFactorEnabled: user.twoFactorEnabled,
|
||||
disableImpersonation: user.disableImpersonation,
|
||||
identityProvider: user.identityProvider,
|
||||
brandColor: user.brandColor,
|
||||
darkBrandColor: user.darkBrandColor,
|
||||
@@ -681,6 +682,7 @@ const loggedInViewerRouter = createProtectedRouter()
|
||||
completedOnboarding: z.boolean().optional(),
|
||||
locale: z.string().optional(),
|
||||
timeFormat: z.number().optional(),
|
||||
disableImpersonation: z.boolean().optional(),
|
||||
}),
|
||||
async resolve({ input, ctx }) {
|
||||
const { user, prisma } = ctx;
|
||||
|
||||
Reference in new issue
Block a user