Skip to content

Commit

Permalink
DOP-4481 hotfix (#1032)
Browse files Browse the repository at this point in the history
* DOP-4481-hotfix adding extra check

* DOP-4481-hotfix push to preprd

* DOP-4481-hotfix fix conditional

* DOP-4481-hotfix fix conditional

* DOP-4481-hotfix fix conditional

* DOP-4481-hotfix cleaning
  • Loading branch information
anabellabuckvar authored Apr 18, 2024
1 parent f104403 commit 5abe722
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/services/slack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,10 @@ export class SlackConnector implements ISlackConnector {
const inputMapping = {
block_repo_option: 'repo_option',
block_hash_option: 'hash_option',
block_deploy_option: 'deploy_option',
};

// if deploy all was selected:
if (stateValues['block_deploy_option']['deploy_option']?.selected_option?.value == 'deploy_all') {
if (stateValues['block_deploy_option']?.deploy_option?.selected_option?.value == 'deploy_all') {
if (!isAdmin) {
throw new Error('User is not an admin and therefore not entitled to deploy all repos');
}
Expand Down

0 comments on commit 5abe722

Please sign in to comment.