Allows all actions if the user is an admin.
Adds a http_response_code method for PHP < 5.4.