We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 315e517 commit f00ec9bCopy full SHA for f00ec9b
1 file changed
src/WAC.php
@@ -490,7 +490,12 @@ private function getParentUri($uri) {
490
}
491
private function getWACGrants($grants, $uri) {
492
$wacGrants = array();
493
-
+ if (!isset($grants['accessTo'])) {
494
+ $grants['accessTo'] = [];
495
+ }
496
+ if (!isset($grants['default'])) {
497
+ $grants['default'] = [];
498
499
foreach ((array)$grants['accessTo'] as $grant => $grantedUri) {
500
if ($this->arePathsEqual($grantedUri, $uri)) {
501
$wacGrants[] = $this->grantToWac($grant);
0 commit comments