From 8d33694b0aee46942d020021aa1e3bbdfaa56719 Mon Sep 17 00:00:00 2001 From: Maxence Lange Date: Wed, 14 Jun 2023 08:06:30 -0100 Subject: [PATCH] fix call to isenabledforuser Signed-off-by: Maxence Lange --- lib/Service/GroupFoldersService.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/Service/GroupFoldersService.php b/lib/Service/GroupFoldersService.php index 0395e16b..620b595c 100644 --- a/lib/Service/GroupFoldersService.php +++ b/lib/Service/GroupFoldersService.php @@ -94,13 +94,12 @@ class GroupFoldersService { * @param MiscService $miscService */ public function __construct( - $userId, IDBConnection $dbConnection, IAppManager $appManager, - IManager $shareManager, + IDBConnection $dbConnection, IAppManager $appManager, IManager $shareManager, IGroupManager $groupManager, LocalFilesService $localFilesService, ConfigService $configService, MiscService $miscService ) { if ($configService->getAppValue(ConfigService::FILES_GROUP_FOLDERS) === '1' - && $appManager->isEnabledForUser('groupfolders', $userId)) { + && $appManager->isEnabledForUser('groupfolders')) { try { $this->folderManager = new FolderManager($dbConnection); } catch (Exception $e) {