aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorThomas Hackl <hackl@data-quest.de>2023-11-27 13:34:29 +0000
committerJan-Hendrik Willms <tleilax+github@gmail.com>2023-11-27 14:41:11 +0100
commit618d282d48f277745143557ec684fa02238c43dc (patch)
treebe553ae388852c9b3d4cf3fde020f39f34c8c4a6 /lib
parent4a23d2dc6c1ec748fef7fc0fda245b6c952b9ac9 (diff)
Resolve "Zuweisung von Rollen an User überprüft die Existenz der übergebenen Rolle nicht korrekt"
Closes #3505 Merge request studip/studip!2397
Diffstat (limited to 'lib')
-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 d2b0347..b11fa4a 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();