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['uid_owner'] = $this->storage->getOwner($file);
|
||||
$data['permissions'] = $data['permissions'] & $this->storage->getPermissions('');
|
||||
if (isset($data['permissions'])) {
|
||||
$data['permissions'] = $data['permissions'] & $this->storage->getPermissions('');
|
||||
} else {
|
||||
$data['permissions'] = $this->storage->getPermissions('');
|
||||
}
|
||||
return $data;
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue