Skip to content

Commit

Permalink
More incorrectly merged conflict?
Browse files Browse the repository at this point in the history
  • Loading branch information
driusan committed May 17, 2022
1 parent 25688e0 commit 3aad732
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions php/libraries/UserPermissions.class.inc
Expand Up @@ -299,15 +299,6 @@ class UserPermissions
p.moduleID
FROM permissions p ";

//If not superuser, get the permissions that the user has
if (!$this->hasPermission('superuser')) {
$query .= "JOIN user_perm_rel up ON (p.permID=up.PermID)
LEFT JOIN permissions_category pc ON (pc.ID=p.categoryID)
LEFT JOIN modules m ON p.moduleID=m.ID
WHERE up.userID = :UID and m.Active='Y'
ORDER BY p.categoryID, m.Name, p.description";
}

$results = $DB->pselect($query, ['UID' => $this->userID]);
$modules = \Module::getActiveModulesIndexed($loris);
// Build new meaningful description from combination of columns
Expand Down

0 comments on commit 3aad732

Please sign in to comment.