From 2e9b92b710ea046c3930c4d7980cbdd96db42bb7 Mon Sep 17 00:00:00 2001 From: Thomas Hackl <hackl@data-quest.de> Date: Mon, 27 Nov 2023 13:34:29 +0000 Subject: [PATCH] =?UTF-8?q?Resolve=20"Zuweisung=20von=20Rollen=20an=20User?= =?UTF-8?q?=20=C3=BCberpr=C3=BCft=20die=20Existenz=20der=20=C3=BCbergebene?= =?UTF-8?q?n=20Rolle=20nicht=20korrekt"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #3505 Merge request studip/studip!2397 --- lib/plugins/db/RolePersistence.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plugins/db/RolePersistence.class.php b/lib/plugins/db/RolePersistence.class.php index d2b03471f80..b11fa4ad8fd 100644 --- a/lib/plugins/db/RolePersistence.class.php +++ b/lib/plugins/db/RolePersistence.class.php @@ -179,7 +179,7 @@ class RolePersistence { // role is not in database // save it to the database first - if ($role->getRoleid() !== Role::UNKNOWN_ROLE_ID) { + if ($role->getRoleid() === Role::UNKNOWN_ROLE_ID) { $roleid = self::saveRole($role); } else { $roleid = $role->getRoleid(); -- GitLab