Skip to content

Commit

Permalink
fix: unable to view API token without ManageCADSettings permissions (c…
Browse files Browse the repository at this point in the history
…loses #1792)
  • Loading branch information
casperiv0 committed Sep 17, 2023
1 parent e75a4ac commit 7634271
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ export class CADSettingsController {
const version = await getCADVersion();

const hasManageCadSettingsPermissions = user
? false
: hasPermission({
? hasPermission({
permissionsToCheck: [Permissions.ManageCADSettings],
userToCheck: user,
});
})
: false;

const cad = await prisma.cad.findFirst({
select: {
Expand Down

0 comments on commit 7634271

Please sign in to comment.