Rename and move permissions are set when a file is updatable
* Fix unit tests
This commit is contained in:
parent
4da858b3b7
commit
3673cfae3c
|
@ -230,7 +230,7 @@ abstract class Node implements \Sabre\DAV\INode {
|
|||
if ($this->info->isDeletable()) {
|
||||
$p .= 'D';
|
||||
}
|
||||
if ($this->info->isDeletable()) {
|
||||
if ($this->info->isUpdateable()) {
|
||||
$p .= 'NV'; // Renameable, Moveable
|
||||
}
|
||||
if ($this->info->getType() === \OCP\Files\FileInfo::TYPE_FILE) {
|
||||
|
|
|
@ -31,8 +31,8 @@ class Node extends \Test\TestCase {
|
|||
array(\OCP\Constants::PERMISSION_ALL, 'file', true, false, 'SRDNVW'),
|
||||
array(\OCP\Constants::PERMISSION_ALL, 'file', true, true, 'SRMDNVW'),
|
||||
array(\OCP\Constants::PERMISSION_ALL - \OCP\Constants::PERMISSION_SHARE, 'file', true, false, 'SDNVW'),
|
||||
array(\OCP\Constants::PERMISSION_ALL - \OCP\Constants::PERMISSION_UPDATE, 'file', false, false, 'RDNV'),
|
||||
array(\OCP\Constants::PERMISSION_ALL - \OCP\Constants::PERMISSION_DELETE, 'file', false, false, 'RW'),
|
||||
array(\OCP\Constants::PERMISSION_ALL - \OCP\Constants::PERMISSION_UPDATE, 'file', false, false, 'RD'),
|
||||
array(\OCP\Constants::PERMISSION_ALL - \OCP\Constants::PERMISSION_DELETE, 'file', false, false, 'RNVW'),
|
||||
array(\OCP\Constants::PERMISSION_ALL - \OCP\Constants::PERMISSION_CREATE, 'file', false, false, 'RDNVW'),
|
||||
array(\OCP\Constants::PERMISSION_ALL - \OCP\Constants::PERMISSION_CREATE, 'dir', false, false, 'RDNV'),
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue