Skip to content

Commit

Permalink
HARMONY-1834: Minor refactoring.
Browse files Browse the repository at this point in the history
  • Loading branch information
ygliuvt committed Aug 12, 2024
1 parent 09db999 commit c7bd2a3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions services/harmony/app/frontends/service-image-tags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -522,8 +522,7 @@ export async function updateServiceImageTag(
export async function getServiceImageTagState(
req: HarmonyRequest, res: Response, _next: NextFunction,
): Promise<void> {
if (!hasCookieSecret(req))
if (! await validateUserIsInDeployerOrCoreGroup(req, res)) return;
if (!hasCookieSecret(req) && ! await validateUserIsInDeployerOrCoreGroup(req, res)) return;

const { enabled, message } = await getEnabledAndMessage();
res.statusCode = 200;
Expand Down

0 comments on commit c7bd2a3

Please sign in to comment.