diff options
Diffstat (limited to 'advtrains_line_automation/station_editor.lua')
-rw-r--r-- | advtrains_line_automation/station_editor.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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" |