Skip to content
Snippets Groups Projects
Commit 2e9b92b7 authored by Thomas Hackl's avatar Thomas Hackl Committed by Jan-Hendrik Willms
Browse files

Resolve "Zuweisung von Rollen an User überprüft die Existenz der übergebenen Rolle nicht korrekt"

Closes #3505

Merge request studip/studip!2397
parent 2d463e2a
No related branches found
No related tags found
No related merge requests found
...@@ -179,7 +179,7 @@ class RolePersistence ...@@ -179,7 +179,7 @@ class RolePersistence
{ {
// role is not in database // role is not in database
// save it to the database first // save it to the database first
if ($role->getRoleid() !== Role::UNKNOWN_ROLE_ID) { if ($role->getRoleid() === Role::UNKNOWN_ROLE_ID) {
$roleid = self::saveRole($role); $roleid = self::saveRole($role);
} else { } else {
$roleid = $role->getRoleid(); $roleid = $role->getRoleid();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment