Fix wrong permission for description button in new build page (#26548)

The new build page passed `it.object.UPDATE` to the editDescription
button.
This is wrong as the wrapping `detail-bar` sets the `it`-object already
to the run itself. This leads the button being shown for all users even
when they lack the permission to update the run.
This commit is contained in:
Markus Winter authored and GitHub committed 2026-03-30 18:21:49 -06:00
1 parent 12c2e2bd9b
commit a2dbb8c7b9
1 file changed
+1 -1
@@ -27,7 +27,7 @@ THE SOFTWARE.
<l:run-subpage>
<l:app-bar title="${it.displayName}" headingLevel="h2">
<l:details-bar it="${it.object}">
<t:editDescriptionButton permission="${it.object.UPDATE}"
<t:editDescriptionButton permission="${it.UPDATE}"
compact="true" />
</l:details-bar>
</l:app-bar>