Add root directory checks for CRUDS permissions in shared storage
This commit is contained in:
parent
f7b89f0475
commit
fc72d4b10f
1 changed files with 12 additions and 0 deletions
|
@ -188,6 +188,9 @@ class OC_Filestorage_Shared extends OC_Filestorage_Common {
|
|||
}
|
||||
|
||||
public function isCreatable($path) {
|
||||
if ($path == '') {
|
||||
return false;
|
||||
}
|
||||
return ($this->getPermissions($path) & OCP\Share::PERMISSION_CREATE);
|
||||
}
|
||||
|
||||
|
@ -196,14 +199,23 @@ class OC_Filestorage_Shared extends OC_Filestorage_Common {
|
|||
}
|
||||
|
||||
public function isUpdatable($path) {
|
||||
if ($path == '') {
|
||||
return false;
|
||||
}
|
||||
return ($this->getPermissions($path) & OCP\Share::PERMISSION_UPDATE);
|
||||
}
|
||||
|
||||
public function isDeletable($path) {
|
||||
if ($path == '') {
|
||||
return false;
|
||||
}
|
||||
return ($this->getPermissions($path) & OCP\Share::PERMISSION_DELETE);
|
||||
}
|
||||
|
||||
public function isSharable($path) {
|
||||
if ($path == '') {
|
||||
return false;
|
||||
}
|
||||
return ($this->getPermissions($path) & OCP\Share::PERMISSION_SHARE);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue