mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-23 08:12:08 +00:00
38 lines
736 B
C++
38 lines
736 B
C++
/*
|
|
* Copyright 2016-present ScyllaDB
|
|
*
|
|
* Modified by ScyllaDB
|
|
*/
|
|
|
|
/*
|
|
* SPDX-License-Identifier: (LicenseRef-ScyllaDB-Source-Available-1.1 and Apache-2.0)
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "authorization_statement.hh"
|
|
#include "auth/permission.hh"
|
|
#include "auth/resource.hh"
|
|
|
|
namespace cql3 {
|
|
|
|
class role_name;
|
|
|
|
namespace statements {
|
|
|
|
class permission_altering_statement : public authorization_altering_statement {
|
|
protected:
|
|
auth::permission_set _permissions;
|
|
mutable auth::resource _resource;
|
|
sstring _role_name;
|
|
|
|
public:
|
|
permission_altering_statement(auth::permission_set, auth::resource, const cql3::role_name&);
|
|
|
|
future<> check_access(query_processor& qp, const service::client_state&) const override;
|
|
};
|
|
|
|
}
|
|
|
|
}
|