Overview
Comment:Restrict NextCloud/ownCloud to documents
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | dev
Files: files | file ages | folders
SHA3-256: 2c5afc058fbf55d8a274e84368b341e758c72fc617b506f15c0c872568111060
User & Date: bohwaz on 2022-11-14 03:10:01
Other Links: branch diff | manifest | tags
Context
2022-11-14
12:16
Fix small issues reported by demo.garradin.eu check-in: f376e889c5 user: bohwaz tags: dev
03:10
Restrict NextCloud/ownCloud to documents check-in: 2c5afc058f user: bohwaz tags: dev
03:09
NC/OC are restricted to documents, so there's no use in showing other rights check-in: 9606c504f7 user: bohwaz tags: dev
Changes

Modified src/include/lib/Garradin/Files/WebDAV/NextCloud.php from [34d59b7878] to [24239964bd].

9
10
11
12
13
14
15

16
17
18
19
20
21
22
use Garradin\Users\Session;

use const Garradin\{SECRET_KEY, ADMIN_URL, CACHE_ROOT, WWW_URL};

class NextCloud extends WebDAV_NextCloud
{
	protected string $temporary_chunks_path;


	public function __construct()
	{
		$this->temporary_chunks_path =  CACHE_ROOT . '/webdav.chunks';
		$this->setRootURL(WWW_URL);
	}








>







9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
use Garradin\Users\Session;

use const Garradin\{SECRET_KEY, ADMIN_URL, CACHE_ROOT, WWW_URL};

class NextCloud extends WebDAV_NextCloud
{
	protected string $temporary_chunks_path;
	protected string $prefix = 'documents/';

	public function __construct()
	{
		$this->temporary_chunks_path =  CACHE_ROOT . '/webdav.chunks';
		$this->setRootURL(WWW_URL);
	}