From 67511ec1f13023a402af69a4e5ce36c8503b344c Mon Sep 17 00:00:00 2001 From: orwell Date: Mon, 23 Jun 2025 22:27:54 +0200 Subject: Minor fixes in stoprail form --- advtrains_line_automation/station_editor.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'advtrains_line_automation/station_editor.lua') diff --git a/advtrains_line_automation/station_editor.lua b/advtrains_line_automation/station_editor.lua index 548c839..b529ede 100644 --- a/advtrains_line_automation/station_editor.lua +++ b/advtrains_line_automation/station_editor.lua @@ -856,7 +856,7 @@ local function get_jr_formspec(custom_state) end if not custom_state.force_unprivileged then - if core.check_player_privs(name, {protection_bypass=true}) then -- TODO make a lines admin privilege + if core.check_player_privs(custom_state.player_name, {protection_bypass=true}) then -- TODO make a lines admin privilege access_level = "admin" elseif custom_state.player_name == node_owner or custom_state.player_name == stn_owner then access_level = "owner" -- cgit v1.2.3