daledavies / moodle-tool_registrationrules

GNU General Public License v3.0
2 stars 1 forks source link

Improve the way error.php works, or how error is displayed in tool_registrationrules_pre_signup_requests() #15

Open daledavies opened 1 month ago

daledavies commented 1 month ago

It feels like there should be a nicer way to do this

phager-at commented 3 weeks ago

Instead of redirecting the user, we could also render our own page directly in our callback and exit from all PHP execution instead. We'd even be able to customise the HTTP Status code returned to an appropriate one (like 403).