From 17c0b01444cd2f5aa8e3926a50960e9e1c0d730d Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Fri, 19 Dec 2008 22:13:33 +0000 Subject: Add access::forbidden() --- core/helpers/access.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'core/helpers') diff --git a/core/helpers/access.php b/core/helpers/access.php index 85ff8290..0d44a074 100644 --- a/core/helpers/access.php +++ b/core/helpers/access.php @@ -106,6 +106,13 @@ class access_Core { return false; } + /** + * Terminate immediately with an HTTP 503 Forbidden response. + */ + public static function forbidden() { + throw new Exception("@todo FORBIDDEN", 503); + } + /** * Internal method to set a permission * -- cgit v1.2.3