Skip to content

Commit

Permalink
fix index of groupfolders
Browse files Browse the repository at this point in the history
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
  • Loading branch information
ArtificialOwl authored and backportbot[bot] committed Aug 11, 2021
1 parent fdd6d9d commit 276cd00
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 @@ -101,7 +101,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 276cd00

Please sign in to comment.