How can I check if the user is in the admin enviroment of processwire?
At the moment I'm using some buggy url check but I figure that there must be something in processwire itself to check for that.
I don't want to check if the user has administrator privileges, just if the user is visiting an admin url. Because the admin url can be changed from the admin panel I don't want to check on something hard coded as well.
What is the best way to check for an admin page?