Skip to content

Commit

Permalink
fix: update hasSetupAnalyticsPermission check gf-573 (#574)
Browse files Browse the repository at this point in the history
  • Loading branch information
kolibri753 authored Sep 27, 2024
1 parent 6f519dc commit b968e29
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/frontend/src/pages/project/project.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,9 @@ const Project = (): JSX.Element => {
combinedPermissions,
) || hasManagePermission;

const hasSetupAnalyticsPermission = hasManageAllProjectsPermission;
const hasSetupAnalyticsPermission =
hasManageAllProjectsPermission || hasEditPermission;

const hasEditContributorPermission = hasManageAllProjectsPermission;
const hasMergeContributorPermission = hasManageAllProjectsPermission;
const hasSplitContributorPermission = hasManageAllProjectsPermission;
Expand Down

0 comments on commit b968e29

Please sign in to comment.