mirror of
https://github.com/netzbegruenung/user_saml.git
synced 2024-05-02 17:14:53 +02:00
Only remove user groups from SAML backend
Signed-off-by: Jonathan Treffler <mail@jonathan-treffler.de> Signed-off-by: Giuliano Mele <giuliano.mele@verdigado.com>
This commit is contained in:
parent
e90aca0a23
commit
266a2f4467
|
@ -88,7 +88,7 @@ class GroupManager
|
|||
|
||||
public function removeGroup(IUser $user, string $gid) {
|
||||
$group = $this->groupManager->get($gid);
|
||||
if($group === null) {
|
||||
if($group === null || !$this->hasSamlBackend($group)) {
|
||||
return;
|
||||
}
|
||||
$group->removeUser($user);
|
||||
|
|
Loading…
Reference in a new issue