[Pkg-owncloud-commits] [owncloud] 28/103: remove unneeded readonlycache

David Prévot taffit at moszumanska.debian.org
Sun May 31 12:32:35 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag v8.0.4RC1
in repository owncloud.

commit e29670981520ee29cce07f9c1a9c1ff69ebcacd0
Author: Robin Appelman <icewind at owncloud.com>
Date:   Wed Apr 22 20:07:54 2015 +0200

    remove unneeded readonlycache
---
 apps/files_sharing/lib/readonlycache.php | 27 ---------------------------
 1 file changed, 27 deletions(-)

diff --git a/apps/files_sharing/lib/readonlycache.php b/apps/files_sharing/lib/readonlycache.php
deleted file mode 100644
index 6dd3b9c..0000000
--- a/apps/files_sharing/lib/readonlycache.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-/**
- * Copyright (c) 2014 Robin Appelman <icewind at owncloud.com>
- * This file is licensed under the Affero General Public License version 3 or
- * later.
- * See the COPYING-README file.
- */
-
-namespace OCA\Files_Sharing;
-
-use OC\Files\Cache\Cache;
-
-class ReadOnlyCache extends Cache {
-	public function get($path) {
-		$data = parent::get($path);
-		$data['permissions'] &= (\OCP\Constants::PERMISSION_READ | \OCP\Constants::PERMISSION_SHARE);
-		return $data;
-	}
-
-	public function getFolderContents($path) {
-		$content = parent::getFolderContents($path);
-		foreach ($content as &$data) {
-			$data['permissions'] &= (\OCP\Constants::PERMISSION_READ | \OCP\Constants::PERMISSION_SHARE);
-		}
-		return $content;
-	}
-}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list