From fe0a25876b11a5c264e7d0e97831ccbdcc0936a7 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 18 Apr 2020 17:40:27 -0400 Subject: [PATCH] Fix FetchUserPermissions() exploding group IDs. It used the current user rather than the specified one. --- includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/functions.php b/includes/functions.php index 10fd598..d636ed1 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -758,7 +758,7 @@ function FetchUserPermissions(&$user) $perms = (int)bugdar::$datastore['usergroup']["$user[usergroupid]"]['permissions']; if (!is_array($user['groupids'])) { - $user['groupids'] = explode(',', $bugsys->userinfo['groupids']); + $user['groupids'] = explode(',', $user['groupids']); } $user['groupids'] = $bugsys->funct->array_strip_empty($user['groupids']); -- 2.43.5