Only load personal external storages for allowed backends
This commit is contained in:
parent
8e6409a932
commit
73607e5d16
|
@ -238,10 +238,13 @@ class OC_Mount_Config {
|
|||
}
|
||||
}
|
||||
|
||||
$personalBackends = self::getPersonalBackends();
|
||||
|
||||
// Load personal mount points
|
||||
$mountConfig = self::readData($user);
|
||||
if (isset($mountConfig[self::MOUNT_TYPE_USER][$user])) {
|
||||
foreach ($mountConfig[self::MOUNT_TYPE_USER][$user] as $mountPoint => $options) {
|
||||
if (isset($personalBackends[$options['class']])) {
|
||||
$options['personal'] = true;
|
||||
$options['options'] = self::decryptPasswords($options['options']);
|
||||
|
||||
|
@ -251,6 +254,7 @@ class OC_Mount_Config {
|
|||
$mountPoints[$mountPoint] = $options;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $mountPoints;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue