diff --git a/code/game/machinery/doors/airlock.dm b/code/game/machinery/doors/airlock.dm index dff4eb62023..10336286e47 100644 --- a/code/game/machinery/doors/airlock.dm +++ b/code/game/machinery/doors/airlock.dm @@ -726,6 +726,8 @@ About the new airlock wires panel: VUEUI_SET_CHECK(data["elea"], electrified_at, ., data) var/isAI = issilicon(user) && !player_is_antag(user.mind) VUEUI_SET_CHECK(data["isai"], isAI, ., data) + var/isAdmin = check_rights(R_ADMIN) + VUEUI_SET_CHECK(data["isadmin"], isAdmin, ., data) VUEUI_SET_CHECK(data["idscan"], !aiDisabledIdScanner, ., data) VUEUI_SET_CHECK(data["bolts"], !locked, ., data) diff --git a/html/changelogs/disabled_button_fix.yml b/html/changelogs/disabled_button_fix.yml new file mode 100644 index 00000000000..ef3b71f099f --- /dev/null +++ b/html/changelogs/disabled_button_fix.yml @@ -0,0 +1,7 @@ +author: mikomyazaki + +# Optional: Remove this file after generating master changelog. Useful for PR changelogs that won't get used again. +delete-after: True + +changes: + - bugfix: "A traitor AI/cyborg accessing an airlock UI will see the proper button state for dropping door bolts." \ No newline at end of file diff --git a/vueui/src/components/view/misc/doors.vue b/vueui/src/components/view/misc/doors.vue index 490a6470105..e0a26bcf36f 100644 --- a/vueui/src/components/view/misc/doors.vue +++ b/vueui/src/components/view/misc/doors.vue @@ -43,7 +43,7 @@ {{ c.et || 'Enabled' }} - {{ c.dt || 'Disabled' }} + {{ c.dt || 'Disabled' }}