Skip to content

Commit

Permalink
fix: Get permissions by using environment instead of project scope (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
novakzaballa authored Feb 20, 2024
1 parent 6391ed6 commit 1b427f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/web/components/EnvironmentDocumentCodeHelp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const EnvironmentDocumentCodeHelp: FC<EnvironmentDocumentCodeHelpType> = ({
const { data } = useGetServersideEnvironmentKeysQuery({ environmentId })
const envAdmin = useHasPermission({
id: environmentId,
level: 'project',
level: 'environment',
permission: 'ADMIN',
})
return (
Expand Down

0 comments on commit 1b427f2

Please sign in to comment.