From ed900e2917ddf8661b8074ab272729a05f3e7d94 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andr=C3=A9=20Noack?= <noack@data-quest.de>
Date: Tue, 1 Feb 2022 17:56:08 +0000
Subject: [PATCH] =?UTF-8?q?Resolve=20"Rollenverwaltung:=20Anlegen=20und=20?=
 =?UTF-8?q?L=C3=B6schen=20von=20Rollen=20verursacht=20Fatal=20Error"?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 lib/plugins/db/RolePersistence.class.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/plugins/db/RolePersistence.class.php b/lib/plugins/db/RolePersistence.class.php
index a0d01d5a4f0..4ffb2c8bfae 100644
--- a/lib/plugins/db/RolePersistence.class.php
+++ b/lib/plugins/db/RolePersistence.class.php
@@ -64,7 +64,7 @@ class RolePersistence
     public static function saveRole($role)
     {
         // sweep roles cache, see #getAllRoles
-        self::expireCaches();
+        self::expireRolesCache();
 
         // role is not in database
         $query = "INSERT INTO `roles` (`roleid`, `rolename`, `system`)
@@ -102,7 +102,7 @@ class RolePersistence
         $name = $role->getRolename();
 
         // sweep roles cache
-        self::expireCaches();
+        self::expireRolesCache();
 
         $query = "SELECT `pluginid` FROM `roles_plugins` WHERE `roleid` = ?";
         $statement = DBManager::get()->prepare($query);
-- 
GitLab