mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-10-26 19:15:09 +00:00
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:
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>
|
||||
|
||||
Reference in new issue
Block a user