Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit 89ca9d7

Browse files
committed
Meta.quota: make sure to respect hierarchy by trying to get quota of parent repository owner if it exists (can be a template child without owner), then from the currently logged user, then from the repository config. Fix #884
1 parent 5191d2e commit 89ca9d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/plugins/meta.quota/class.QuotaComputer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ protected function getWorkingRepositoryOptions()
109109

110110
public function getFilteredOption($optionName, $repoScope = AJXP_REPO_SCOPE_ALL, $userObject = null){
111111
$repo = $this->accessDriver->repository;
112-
if ($repo->hasParent() && $repo->getOwner() != AuthService::getLoggedUser()->getId()) {
112+
if ($repo->hasParent() && $repo->getOwner() != null && $repo->getOwner() != AuthService::getLoggedUser()->getId()) {
113113
// Pass parent user instead of currently logged
114114
$userObject = ConfService::getConfStorageImpl()->createUserObject($repo->getOwner());
115115
}

0 commit comments

Comments
 (0)