client_state: Fix error message

Now that resources are not just keyspaces and tables, the word "schema"
doesn't make sense.
This commit is contained in:
Jesse Haber-Kucharsky
2018-01-24 17:53:06 -05:00
parent f9f03bc2e1
commit e27cfd4dda

View File

@@ -186,9 +186,7 @@ future<> service::client_state::has_access(const sstring& ks, auth::permission p
for (auto& s : { _auth_service->underlying_authorizer().protected_resources(),
_auth_service->underlying_authorizer().protected_resources() }) {
if (s.count(resource)) {
throw exceptions::unauthorized_exception(
sprint("%s schema is protected",
resource));
throw exceptions::unauthorized_exception(sprint("%s is protected", resource));
}
}
}