Description
Short description of the issue
I am actually not sure if this is a bug or intentional, but when debug mode is on and a non-superuser clicks on the "new" page list action and there is no allowed page to be created, they get the full stack trace:
ProcessWire: ProcessPageAdd: No templates allowed for adding new pages here.
DEBUG MODE BACKTRACE ($config->debug == true):
/wire/core/Wire.php(380): ProcessWire\ProcessPageAdd->___buildForm()
etc
etc
Expected behavior
I guess I expected the debug mode messages are only visible to superusers. Maybe I have come across this before, but I still think it's unfriendly.
I know debug mode should be off for live sites, but sometimes with dev sites which are password protected it's nice to leave it on. I don't think non-superusers should ever see the full error. Or are you of the opinion that perhaps sometimes we need to debug something while logged in as a non-superuser and that's the reason for this?
Reality is that debug mode doesn't have much relevance with Tracy installed, but I would still that to confirm that this behavior is intended.
Thanks!
Actual behavior
Full stack trace is shown to non-superusers.