From c3140218b38356f2b29acba26be897900c8ba083 Mon Sep 17 00:00:00 2001 From: Neil Lathwood Date: Thu, 20 Oct 2016 18:53:49 +0100 Subject: [PATCH] fix: Fix irc bot user level (#4833) --- LibreNMS/IRCBot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LibreNMS/IRCBot.php b/LibreNMS/IRCBot.php index 0d97518134..a7fac4269e 100644 --- a/LibreNMS/IRCBot.php +++ b/LibreNMS/IRCBot.php @@ -480,7 +480,7 @@ class IRCBot $this->user['expire'] = (time() + ($this->config['irc_authtime'] * 3600)); $tmp_user = get_user($this->user['id']); $tmp = get_userlevel($tmp_user['username']); - $this->user['level'] = $tmp['level']; + $this->user['level'] = $tmp; if ($this->user['level'] < 5) { foreach (dbFetchRows('SELECT device_id FROM devices_perms WHERE user_id = ?', array($this->user['id'])) as $tmp) { $this->user['devices'][] = $tmp['device_id'];