diff --git a/modules/admin/deactivate.cc b/modules/admin/deactivate.cc index d17ccc3c7..ce134507d 100644 --- a/modules/admin/deactivate.cc +++ b/modules/admin/deactivate.cc @@ -37,7 +37,7 @@ ircd::m::admin::post_method { deactivate_resource, "POST", handle_post, { - post_method.REQUIRES_AUTH + post_method.REQUIRES_OPER } }; @@ -56,12 +56,6 @@ ircd::m::admin::handle_post(client &client, url::decode(user_id, request.parv[0]) }; - if(!is_oper(request.user_id)) - throw m::ACCESS_DENIED - { - "You are not an operator." - }; - m::user user { user_id diff --git a/modules/admin/users.cc b/modules/admin/users.cc index 8adb686d3..f85b9440d 100644 --- a/modules/admin/users.cc +++ b/modules/admin/users.cc @@ -38,7 +38,7 @@ ircd::m::admin::get_method { users_resource, "GET", handle_get, { - get_method.REQUIRES_AUTH + get_method.REQUIRES_OPER } };