Fix #126: Deployment-Aktionen nur für Besitzer (Admin-Bypass entfernt) - #226
Merged
Conversation
Die Aktionen-Karte (Abbrechen/Löschen/Aufräumen/Erneut versuchen) im Deployment-Detail wird jetzt rein anhand des Besitzes freigeschaltet. Vorher enthielt das Gate einen expliziten Admin-Bypass: currentUser.isAdmin || (ownerId != null && ownerId === userId) Damit behielten Admins die volle Aktions-Toolbox auf JEDEM Deployment – das Gegenteil von #126. Jetzt: deployment.ownerId != null && deployment.ownerId === currentUser.userId Admins, die ein Deployment selbst besitzen, behalten ihre Aktionen; jeder Nicht-Besitzer (inkl. Admins, die aus der Administration ein fremdes Deployment öffnen) sieht die Buttons ausgegraut mit Tooltip, behält aber vollen Lesezugriff (Logs, Credentials, Details) – diese sind nicht durch canManageDeployment gegated. Das Backend erzwingt dies bereits auf den Mutations-Endpunkten (403 für Nicht-Besitzer-Nicht-Admins) via authorize_deployment_access – dies ist also eine reine UX-Schicht. Doc-Kommentar entsprechend aktualisiert.
RamonaKT
self-requested a review
July 24, 2026 21:44
RamonaKT
approved these changes
Jul 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #126
Was
Das Gate für die Aktionen-Karte (Abbrechen/Löschen/Aufräumen/Erneut versuchen) in
src/pages/DeploymentDetails.tsxist jetzt rein besitzbasiert. Der explizite Admin-Bypass wurde entfernt:Verhalten
canManageDeploymentgegated.canManageDeployment.Hinweise
authorize_deployment_access. Dies ist somit eine reine UX-Schicht, die einen garantierten 403-Klick verhindert.AdminProjectOverviewdieselbeDeploymentDetails-Route ohne Source-Flag wiederverwendet, ist die Regel auf "jedes Deployment, das der Admin nicht besitzt" verallgemeinert — funktional deckungsgleich mit der Absicht des Issues.Build
npm run buildgrün (nur vorbestehende, unabhängige CSS-Minify-Warnung).