Can't replace file even with Permissions

Permalink
Hi,

I have given a user group permissions to edit files in a folder. But when a user in the group tries to replace a file he gets the error message: 'Unable to add files'.

I have tried giving all the permissions to the group: View Files, Search File Folder, Edit File Folder, Edit File Properties, Edit File Contents, Copy File, Edit File Access, Delete File Set, Delete File and Add File, just to test, with the same result: still unable to add files. How is it possible not to be able to replace a file if the user has all the permissions? Is there a bug, or am I missing anyting? Any help would be welcome.

Thanks,

Juan Ramón

jrsanche
 
jrsanche replied on at Permalink Reply
jrsanche
The problem was in .../concrete/tools/files/importers/single.php (and the same in other importers). After the line:

$fp = FilePermissions::getGlobal();


We introduced the following code:

$folder = null;
$file = File::getByID($_REQUEST['fID']);
$node = $file->getFileFolderObject();
if ($nodo instanceof \Concrete\Core\Tree\Node\Type\FileFolder) {
    $folder = $node;
}
if ($folder) {
    $fp = new Permissions($folder);
}


Hope it helps someone with the same problem.

Regards,

Juan Ramón
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
What version of Concrete5 are you using?
That file does not exist in Concrete5 Version 8.5.1 or in Version 8.5.2RC2
jrsanche replied on at Permalink Reply
jrsanche
We are using Concrete5 8.3.2.