Skip to content

Commit 301f06a

Browse files
committed
Readme + bouncer.php cleanup
1 parent 772f20f commit 301f06a

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ return [
132132
];
133133
```
134134

135-
### 2.3 Specify fallback path
135+
### 2.3 Fallback path
136136

137137
In your `site/config/config.php`, you can configure for each `role` which path to fallback to when the user tries to access a forbidden page.
138138
It is optional: if left empty, the first accessible page from the *Pages field* associated to the user's role (`canaccess`, in our example) will be used.

lib/bouncer.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,14 +114,12 @@ public static function panelChanges() {
114114
});
115115
$changes['props']['pages'] = array_values($pages);
116116

117-
118117
$files = $changes['props']['files'];
119118
$files = array_filter($files, function($f) use($allowed) {
120119
return in_array(explode('/files/', $f['link'])[0], array_column($allowed, 'path'));
121120
});
122121
$changes['props']['files'] = array_values($files);
123122

124-
125123
$changes['props']['users'] = [];
126124
}
127125

0 commit comments

Comments
 (0)