We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39e492c commit 66c0e2bCopy full SHA for 66c0e2b
src/Settings.php
@@ -20,10 +20,7 @@ public static function getLegalTemplates()
20
\ProcessWire\wire('roles')->find("");
21
22
foreach ($templates as $template) {
23
- // we serve templates with access control disabled
24
- if (!$template->useRoles) continue;
25
-
26
- // if enabled we serve only those that user has permission to view
+ // We serve only those that user has permission to view
27
if (!$user->hasTemplatePermission('page-view', $template)) {
28
$templates->remove($template);
29
}
0 commit comments