summaryrefslogtreecommitdiff
path: root/core/helpers
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-12-19 22:13:33 +0000
committerBharat Mediratta <bharat@menalto.com>2008-12-19 22:13:33 +0000
commit17c0b01444cd2f5aa8e3926a50960e9e1c0d730d (patch)
tree8070108f409df836aaf2041e4ab4e0a99d6dde5a /core/helpers
parent855a5928ce74f72352c454c3d613eea60d39682c (diff)
Add access::forbidden()
Diffstat (limited to 'core/helpers')
-rw-r--r--core/helpers/access.php7
1 files changed, 7 insertions, 0 deletions
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
@@ -107,6 +107,13 @@ class access_Core {
}
/**
+ * Terminate immediately with an HTTP 503 Forbidden response.
+ */
+ public static function forbidden() {
+ throw new Exception("@todo FORBIDDEN", 503);
+ }
+
+ /**
* Internal method to set a permission
*
* @param Group_Model $group