MXS-1354: Add user authorization to maxadmin
All commands that modify the internal state of MaxScale now require admin level authorization.
This commit is contained in:
@ -191,7 +191,7 @@ bool do_auth(MHD_Connection* connection, const char* url, const char* method)
|
||||
send_auth_error(connection);
|
||||
rval = false;
|
||||
}
|
||||
else if (!admin_is_admin_user(user) && modifies_data(connection, method))
|
||||
else if (!admin_user_is_inet_admin(user) && modifies_data(connection, method))
|
||||
{
|
||||
if (config_get_global_options()->admin_log_auth_failures)
|
||||
{
|
||||
|
Reference in New Issue
Block a user