* @author Morris Jobke * @author Robin Appelman * * @copyright Copyright (c) 2015, ownCloud, Inc. * @license AGPL-3.0 * * This code is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License, version 3, * along with this program. If not, see * */ namespace OCA\Files_Sharing; use OC\Files\Cache\Wrapper\CachePermissionsMask; use OC\Files\Storage\Wrapper\Wrapper; use OCP\Constants; class ReadOnlyWrapper extends Wrapper { public function isUpdatable($path) { return false; } public function isCreatable($path) { return false; } public function isDeletable($path) { return false; } public function getPermissions($path) { return $this->storage->getPermissions($path) & (\OCP\Constants::PERMISSION_READ | \OCP\Constants::PERMISSION_SHARE); } public function rename($path1, $path2) { return false; } public function touch($path, $mtime = null) { return false; } public function mkdir($path) { return false; } public function rmdir($path) { return false; } public function unlink($path) { return false; } public function getCache($path = '', $storage = null) { if (!$storage) { $storage = $this; } $sourceCache = $this->storage->getCache($path, $storage); return new CachePermissionsMask($sourceCache, Constants::PERMISSION_READ | Constants::PERMISSION_SHARE); } } value='dependabot/github_actions/github-actions-ced721f930'>dependabot/github_actions/github-actions-ced721f930 The official jQuery user interface library: https://github.com/jquery/jquery-uiwww-data
aboutsummaryrefslogtreecommitdiffstats
blob: bbaaac6f4fe0e368489115912067573d3735f46e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!doctype html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title>jQuery UI Selectable Test Suite</title>

	<script src="../../../external/jquery/jquery.js"></script>

	<link rel="stylesheet" href="../../../external/qunit/qunit.css">
	<link rel="stylesheet" href="../qunit-composite.css">
	<script src="../../../external/qunit/qunit.js"></script>
	<script src="../qunit-composite.js"></script>
	<script src="../subsuite.js"></script>

	<script>
	testAllVersions( "selectable" );
	</script>
</head>
<body>

<div id="qunit"></div>
<div id="qunit-fixture">

</div>
</body>
</html>