Skip to content

Commit

Permalink
Merge pull request #228 from nextcloud/backport/227/stable27
Browse files Browse the repository at this point in the history
[stable27] fix call to isenabledforuser
  • Loading branch information
ArtificialOwl authored Jun 16, 2023
2 parents 340432f + 8d33694 commit 652d8ee
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/Service/GroupFoldersService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 652d8ee

Please sign in to comment.