We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0988e33 commit c9e7f61Copy full SHA for c9e7f61
1 file changed
src/WAC.php
@@ -179,6 +179,15 @@ public function getRequestedGrants($request) {
179
$path = str_replace($this->basePath, '', $path);
180
}
181
182
+ // Special case: restrict access to all .acl files.
183
+ // Control is needed to do anything with them,
184
+ // having Control allows all operations.
185
+ if (preg_match('/.acl$/', $path)) {
186
+ return array(
187
+ "resource" => array('http://www.w3.org/ns/auth/acl#Control')
188
+ );
189
+ }
190
+
191
switch ($method) {
192
case "GET":
193
case "HEAD":
0 commit comments