Skip to content

Commit

Permalink
Fix issue with admin users limit
Browse files Browse the repository at this point in the history
Wasn't limiting when set to 1
  • Loading branch information
rjmackay committed Jun 14, 2016
1 parent cc9236b commit 8ab2364
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/classes/Ushahidi/Validator/User/Update.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function checkAdminRoleLimit (Validation $validation, $role)
{
$config = \Kohana::$config->load('features.limits');

if ($config['admin_users'] > 1 && $role == 'admin') {
if ($config['admin_users'] !== TRUE && $role == 'admin') {

$total = $this->repo->getTotalCount(['role' => 'admin']);

Expand Down

0 comments on commit 8ab2364

Please sign in to comment.