aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/permissions.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/phpbb/permissions.php')
-rw-r--r--phpBB/phpbb/permissions.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/phpBB/phpbb/permissions.php b/phpBB/phpbb/permissions.php
index 7006c84b76..42bbe443d1 100644
--- a/phpBB/phpbb/permissions.php
+++ b/phpBB/phpbb/permissions.php
@@ -160,6 +160,17 @@ class permissions
}
/**
+ * Checks if a category has been defined
+ *
+ * @param string $category Identifier of the category
+ * @return bool True if the category is defined, false otherwise
+ */
+ public function category_defined($category)
+ {
+ return isset($this->categories[$category]);
+ }
+
+ /**
* Checks if a permission has been defined
*
* @param string $permission Identifier of the permission