From 1c0dfda99c76dff89f9419baf007b5f5ef3f78d5 Mon Sep 17 00:00:00 2001 From: grilledham Date: Mon, 4 Jun 2018 16:55:59 +0100 Subject: [PATCH] added missing UserGroups require --- tasklist.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasklist.lua b/tasklist.lua index b37cd7f6..c675ed75 100644 --- a/tasklist.lua +++ b/tasklist.lua @@ -4,6 +4,7 @@ ---------------------------------------------------------------------------------------------------------------------------------------- local Event = require "utils.event" +local UserGroups = require "user_groups" local function create_tasklist_gui(event) local player = game.players[event.player_index] @@ -63,7 +64,7 @@ local function tasklist_show(player) global.tasklist_panel_creation_time[player.index] = game.tick - if is_regular( player.name ) or is_mod( player.name ) or player.admin then + if player.admin or UserGroups.is_regular(player.name) then tasklist_panel_button_table.add { type = "button", caption = "New Tasks", name = "new_tasklist_assembler_button" } tasklist_panel_button_table.new_tasklist_assembler_button.style.font = "default-bold" tasklist_panel_button_table.new_tasklist_assembler_button.style.minimal_height = 38