mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-12 19:02:12 +00:00
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:
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user