Skip to content
Snippets Groups Projects
Commit 6a2f5fbe authored by Sandro Lutz's avatar Sandro Lutz
Browse files

Change check if user is admin (reverted from commit 34ab06a0)

parent 34ab06a0
No related branches found
No related tags found
No related merge requests found
......@@ -98,7 +98,7 @@ class UserHooks {
} else {
// User couldn't be verified or API is not working properly
$this->logger->debug('User: Name: ' .$nextCloudUser->getUID());
if ($nextCloudUser != null && !$this->groupManager->isInGroup($user, 'admin')) {
if ($nextCloudUser != null && !$this->groupManager->isAdmin($user)) {
$this->preventUserLogin($nextCloudUser, $password);
}
}
......
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