1 Commits

Author SHA1 Message Date
Sven laptop a5924086f4 Fixed payload check
Build and Push Docker Images / detect-changes (push) Successful in 10s
Build and Push Docker Images / build-auth-api (push) Successful in 58s
Build and Push Docker Images / build-employee-api (push) Successful in 58s
Build and Push Docker Images / build-transit-api (push) Successful in 58s
Build and Push Docker Images / build-error-log-api (push) Successful in 1m9s
Build and Push Docker Images / build-admin-ui (push) Successful in 1m15s
Build and Push Docker Images / build-monitoring-ui (push) Successful in 1m12s
Build and Push Docker Images / deploy-test-node (push) Successful in 3s
2026-09-23 17:31:23 +02:00
2 changed files with 12 additions and 21 deletions
+11 -20
View File
@@ -297,26 +297,17 @@ jobs:
tags: ${{ steps.tags.outputs.tags }} tags: ${{ steps.tags.outputs.tags }}
deploy-test-node: deploy-test-node:
needs: [detect-changes, build-auth-api, build-employee-api, build-transit-api, build-error-log-api, build-admin-ui, build-monitoring-ui] needs:
if: ${{ always() && !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') && gitea.event_name == 'push' }} [
strategy: detect-changes,
fail-fast: false build-auth-api,
matrix: build-employee-api,
include: build-transit-api,
- name: auth-api build-error-log-api,
need_job: build-auth-api build-admin-ui,
- name: employee-api build-monitoring-ui,
need_job: build-employee-api ]
- name: transit-api if: ${{ always() && !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') && gitea.event_name == 'push' && (gitea.ref_name == 'dev' || gitea.ref_name == 'main' || gitea.ref_name == 'develop' || gitea.ref_name == 'auth-api' || gitea.ref_name == 'employee-api' || gitea.ref_name == 'transit-api' || gitea.ref_name == 'error-log-api' || gitea.ref_name == 'admin-ui' || gitea.ref_name == 'monitoring-ui') }}
need_job: build-transit-api
- name: error-log-api
need_job: build-error-log-api
- name: admin-ui
need_job: build-admin-ui
- name: monitoring-ui
need_job: build-monitoring-ui
if: ${{ needs[matrix.value.need_job].result == 'success' }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
+1 -1
View File
@@ -58,7 +58,7 @@ function verifyAdmin(req, res, next) {
try { try {
const payload = jwt.verify(auth.slice(7), JWT_SECRET); const payload = jwt.verify(auth.slice(7), JWT_SECRET);
if (!payload?.isAdmin) { if (!payload?.user.isAdmin) {
return res.status(403).json({ error: toFriendlyError(403) }); return res.status(403).json({ error: toFriendlyError(403) });
} }