get_user_list() - use assert to check credential level.

This commit is contained in:
Blair Bonnett 2012-08-17 23:21:52 +12:00
parent 839309a4a8
commit 4cb80427fe

View File

@ -217,11 +217,7 @@ static struct linked_list* cbfunc_get_user_list(struct plugin_handle* plugin, en
}
/* Check the credential level is valid. */
if(credentials > auth_cred_admin)
{
plugin->error_msg = "Invalid credential level in get_user_list";
return NULL;
}
uhub_assert(credentials <= auth_cred_admin);
/* Get the master user list and prepare our copy. */
struct hub_info* hub = plugin_get_hub(plugin);