A layout override is not an appropriate solution for this case. Authorization needs to be performed earlier, not in the presentation layer. Otherwise users can still manipulate your site, they just can't see the output. A system plugin is the correct solution.
Statistics: Posted by SharkyKZ — Tue Nov 26, 2024 9:46 am