conversions6
This commit is contained in:
@@ -12,7 +12,7 @@ pub(crate) const READ: &str = "read";
|
||||
/// Every ECB object, which is what the pipeline status is checked against:
|
||||
/// one importer feeds every profile, so reading its health is not a
|
||||
/// per-profile question.
|
||||
pub(crate) const ALL_ECB: &str = "ecb:*";
|
||||
pub(crate) const ALL_EXCHANGE_RATES: &str = "exchange-rates:*";
|
||||
|
||||
/// The two bulk-transfer actions, mirroring
|
||||
/// `server/src/auth/rbac/objects.rs`. Taking a whole table out as a file is
|
||||
@@ -44,8 +44,8 @@ pub(crate) fn can_manage(snapshot: &AuthorizationSnapshot, area: &str) -> bool {
|
||||
|
||||
/// Whether the caller may see the reference-rate pipeline. Mirrors the
|
||||
/// server's own check in `server/src/ecb/grpc.rs`.
|
||||
pub(crate) fn can_read_ecb(snapshot: &AuthorizationSnapshot) -> bool {
|
||||
permits(snapshot, ALL_ECB, READ)
|
||||
pub(crate) fn can_read_exchange_rates(snapshot: &AuthorizationSnapshot) -> bool {
|
||||
permits(snapshot, ALL_EXCHANGE_RATES, READ)
|
||||
}
|
||||
|
||||
/// Whether the caller holds a transfer action on any table at all — what the
|
||||
|
||||
Reference in New Issue
Block a user