Drop the AGPL license in favor of a source-available license. See the blog post [1] for details. [1] https://www.scylladb.com/2024/12/18/why-were-moving-to-a-source-available-license/
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.0 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;
|
|
};
|
|
|
|
}
|
|
|
|
}
|