Problem accessing to a filesystem

kacy - September 2, 2009 - 08:35
Project:WebDAV for Drupal
Version:6.x-1.0-rc8
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

When creating more than one filesystem you only have the first one appearing in /admin/user/permissions

> I've found the problem which is in the webdav_filesystem.module in the webdav_filesystem_perm() function :

function webdav_filesystem_perm() {
$filesystems = webdav_filesystem_load_all();
foreach ($filesystems as $filesystem) {
return array(webdav_filesystem_permission($filesystem->name));
}
}

Which i've changed in :

function webdav_filesystem_perm() {
$filesystems = webdav_filesystem_load_all();
$items = array();
foreach ($filesystems as $filesystem) {
$items[] = webdav_filesystem_permission($filesystem->name);
}
return $items;
}

Then it works...

 
 

Drupal is a registered trademark of Dries Buytaert.