aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/providers/common/activation/yql_activation.h
blob: d9bffbf9bd996c81a381e717366fef6f8d4db619 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#pragma once

#include <util/generic/string.h>
#include <unordered_set>

namespace NYql::NConfig {

template <class TActivation>
ui32 GetPercentage(const TActivation& activation, const TString& userName, const std::unordered_set<std::string_view>& groups);

template <class TActivation>
bool Allow(const TActivation& activation, const TString& userName, const std::unordered_set<std::string_view>& groups);

} // namespace