We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82b45c7 commit 7b9a75bCopy full SHA for 7b9a75b
lib/Mount/GroupFolderStorage.php
@@ -39,11 +39,16 @@ public function getFolderId(): int {
39
* @psalm-suppress FalsableReturnStatement Return type of getOwner is not clear even in server
40
*/
41
public function getOwner($path) {
42
+ if ($this->mountOwner !== null) {
43
+ return $this->mountOwner->getUID();
44
+ }
45
+
46
$user = $this->userSession->getUser();
47
if ($user !== null) {
48
return $user->getUID();
49
}
- return $this->mountOwner !== null ? $this->mountOwner->getUID() : false;
50
51
+ return false;
52
53
54
public function getCache($path = '', $storage = null) {
0 commit comments