Typos in API code fixed
This commit is contained in:
@@ -25,7 +25,7 @@ class API_usergroups extends API
|
||||
if ($this->getUsergroup(true)) {
|
||||
$this->apiOutput(409, ['error' => 'Usergroup already exists.']);
|
||||
}
|
||||
$this->baseQuery = ''; # reset the base query set $_GET['builder]
|
||||
$this->baseQuery = ''; # reset the base query set $_GET['builder']
|
||||
|
||||
$this->data['user_group_weight'] = $this->get_next_available_user_group_weight($this->data['user_group_weight']);
|
||||
|
||||
@@ -77,7 +77,7 @@ class API_usergroups extends API
|
||||
$user_group = $this->getUsergroup();
|
||||
|
||||
# superuser cannot be deleted
|
||||
if ($user_group[0]['user_group_slufigy'] === 'superuser') {
|
||||
if ($user_group[0]['user_group_slugify'] === 'superuser') {
|
||||
$this->apiOutput(400, ['error' => 'superuser cannot be deleted.']);
|
||||
}
|
||||
|
||||
@@ -120,7 +120,7 @@ class API_usergroups extends API
|
||||
$user_group = $this->getUsergroup();
|
||||
|
||||
# superuser cannot be modified
|
||||
if ($user_group[0]['user_group_slufigy'] === 'superuser') {
|
||||
if ($user_group[0]['user_group_slugify'] === 'superuser') {
|
||||
$this->apiOutput(500, ['error' => 'superuser cannot be modified']);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user