diff --git a/lib/DiscourseAPI.php b/lib/DiscourseAPI.php index 180331a..cd74cc4 100644 --- a/lib/DiscourseAPI.php +++ b/lib/DiscourseAPI.php @@ -254,12 +254,13 @@ function getUserByExternalID($externalID) * @return mixed HTTP return code and API return object */ - function createCategory($categoryName, $color, $textColor = '000000', $userName = 'system') + function createCategory($categoryName, $color, $textColor = '000000', $userName = 'system', $permissions = array()) { $params = array( 'name' => $categoryName, 'color' => $color, - 'text_color' => $textColor + 'text_color' => $textColor, + 'permissions' => $permissions ); return $this->_postRequest('/categories', $params, $userName); }