check if permissions exists
This commit is contained in:
parent
60ea4388ed
commit
0b2ae314c7
|
@ -94,7 +94,11 @@ class Shared_Cache extends Cache {
|
||||||
$data['is_share_mount_point'] = true;
|
$data['is_share_mount_point'] = true;
|
||||||
}
|
}
|
||||||
$data['uid_owner'] = $this->storage->getOwner($file);
|
$data['uid_owner'] = $this->storage->getOwner($file);
|
||||||
|
if (isset($data['permissions'])) {
|
||||||
$data['permissions'] = $data['permissions'] & $this->storage->getPermissions('');
|
$data['permissions'] = $data['permissions'] & $this->storage->getPermissions('');
|
||||||
|
} else {
|
||||||
|
$data['permissions'] = $this->storage->getPermissions('');
|
||||||
|
}
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue