mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: Fix irc bot user level (#4833)
This commit is contained in:
committed by
Daniel Preussker
parent
c1779f055f
commit
c3140218b3
+1
-1
@@ -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'];
|
||||
|
||||
Reference in New Issue
Block a user