Code Duplication    Length = 9-13 lines in 2 locations

apps/dav/lib/CalDAV/Principal/User.php 1 location

@@ 45-53 (lines=9) @@
42
	 *
43
	 * @return array
44
	 */
45
	function getACL() {
46
		$acl = parent::getACL();
47
		$acl[] = [
48
			'privilege' => '{DAV:}read',
49
			'principal' => '{DAV:}authenticated',
50
			'protected' => true,
51
		];
52
		return $acl;
53
	}
54
55
}
56

apps/dav/lib/CardDAV/UserAddressBooks.php 1 location

@@ 63-75 (lines=13) @@
60
	 *
61
	 * @return array
62
	 */
63
	function getACL() {
64
65
		$acl = parent::getACL();
66
		if ($this->principalUri === 'principals/system/system') {
67
			$acl[] = [
68
					'privilege' => '{DAV:}read',
69
					'principal' => '{DAV:}authenticated',
70
					'protected' => true,
71
			];
72
		}
73
74
		return $acl;
75
	}
76
77
}
78