mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
[ticket/13950] Hide undefined categories
This hides the categories added by disabled extensions PHPBB3-13950
This commit is contained in:
@@ -159,6 +159,17 @@ class permissions
|
||||
return (isset($this->permissions[$permission]['cat'])) ? $this->permissions[$permission]['cat'] : 'misc';
|
||||
}
|
||||
|
||||
/**
|
||||
* 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
|
||||
*
|
||||
|
Reference in New Issue
Block a user