Skip to content

Commit

Permalink
Merge pull request #131 from nextcloud/backport/130/stable22
Browse files Browse the repository at this point in the history
[stable22] fix index of groupfolders
  • Loading branch information
ArtificialOwl authored Aug 11, 2021
2 parents 7e03119 + 510e7e3 commit 390c941
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
10 changes: 5 additions & 5 deletions lib/Model/MountPoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,16 @@ class MountPoint implements JsonSerializable {
private $id;

/** @var string */
private $path;
private $path = '';

/** @var bool */
private $global;
private $global = false;

/** @var array */
private $groups;
private $groups = [];

/** @var array */
private $users;
private $users = [];


/**
Expand Down Expand Up @@ -116,7 +116,7 @@ public function setGlobal(bool $global): MountPoint {


/**
* @return array
* @return array'
*/
public function getGroups(): array {
return $this->groups;
Expand Down
3 changes: 2 additions & 1 deletion lib/Service/GroupFoldersService.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ public function __construct(
ConfigService $configService, MiscService $miscService
) {

if ($appManager->isEnabledForUser('groupfolders', $userId)) {
if ($configService->getAppValue(ConfigService::FILES_GROUP_FOLDERS) === '1'
&& $appManager->isEnabledForUser('groupfolders', $userId)) {
try {
$this->folderManager = new FolderManager($dbConnection);
} catch (Exception $e) {
Expand Down

0 comments on commit 390c941

Please sign in to comment.