Skip to content

Commit

Permalink
EPMRPP-88832 || "Add Project integration" button is disabled for cust…
Browse files Browse the repository at this point in the history
…om Admin role
  • Loading branch information
Vadim73i committed Dec 21, 2023
1 parent 9ba4bef commit 3fe9743
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ import PropTypes from 'prop-types';
import { useIntl } from 'react-intl';
import { useTracking } from 'react-tracking';
import {
isAdminSelector,
activeProjectRoleSelector,
activeProjectSelector,
userAccountRoleSelector,
} from 'controllers/user';
import { uiExtensionIntegrationSettingsSelector } from 'controllers/plugins/uiExtensions/selectors';
import { canUpdateSettings } from 'common/utils/permissions';
Expand Down Expand Up @@ -56,12 +56,12 @@ export const IntegrationInfo = (props) => {
const { formatMessage } = useIntl();
const { trackEvent } = useTracking();
const settingsExtensions = useSelector(uiExtensionIntegrationSettingsSelector);
const isAdmin = useSelector(isAdminSelector);
const accountRole = useSelector(userAccountRoleSelector);
const userProjectRole = useSelector(activeProjectRoleSelector);
const globalIntegrations = useSelector(namedGlobalIntegrationsSelector);
const projectIntegrations = useSelector(namedProjectIntegrationsSelector);
const activeProject = useSelector(activeProjectSelector);
const isAbleToClick = canUpdateSettings(isAdmin, userProjectRole);
const isAbleToClick = canUpdateSettings(accountRole, userProjectRole);
const dispatch = useDispatch();
const {
plugin: { name: pluginName, details = {} },
Expand Down

0 comments on commit 3fe9743

Please sign in to comment.