aboutsummaryrefslogtreecommitdiff
path: root/lib/plugins/db
diff options
context:
space:
mode:
Diffstat (limited to 'lib/plugins/db')
-rw-r--r--lib/plugins/db/RolePersistence.class.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/plugins/db/RolePersistence.class.php b/lib/plugins/db/RolePersistence.class.php
index 88abce3..594eba9 100644
--- a/lib/plugins/db/RolePersistence.class.php
+++ b/lib/plugins/db/RolePersistence.class.php
@@ -221,7 +221,7 @@ class RolePersistence
$cache = self::getUserRolesCache();
if (!isset($cache[$user_id])) {
- $query = "SELECT DISTINCT *
+ $query = "SELECT SQL_CACHE DISTINCT *
FROM (
SELECT `roleid`, `institut_id`, 1 AS explicit
FROM `roles_user`