Take static module capabilities into use
The static module capabilities are now used to query the capabilities of filters and routers. The new RCAP_TYPE_NOAUTH capability is also taken into use. These changes removes the need for the `is_internal_service` function.
This commit is contained in:
@ -627,7 +627,7 @@ static bool check_server_permissions(SERVICE *service, SERVER* server,
|
||||
|
||||
bool check_service_permissions(SERVICE* service)
|
||||
{
|
||||
if (is_internal_service(service->routerModule) ||
|
||||
if (rcap_type_required(service_get_capabilities(service), RCAP_TYPE_NO_AUTH) ||
|
||||
config_get_global_options()->skip_permission_checks ||
|
||||
service->dbref == NULL) // No servers to check
|
||||
{
|
||||
|
Reference in New Issue
Block a user