Share2 ocs fix passing empty strings
return new \OC_OCS_Result($this->formatShare($share));
}
+ public function validatePermissions($permissions) {
+ if ($permissions < 0 || $permissions > \OCP\Constants::PERMISSION_ALL) {
+ return false;
+ }
+
+
+ }
+
/**
- * @param IShare $share
+ * @param \OCP\Share\IShare $share
* @return bool
*/
- protected function canAccessShare(IShare $share) {
+ protected function canAccessShare(\OCP\Share\IShare $share) {
// A file with permissions 0 can't be accessed by us. So Don't show it
if ($share->getPermissions() === 0) {
return false;