summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-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