use async_trait::async_trait;
use super::{DenyAllSwitchToGuard, SwitchToGuard};
use crate::error::{GarrisonError, GarrisonResult};
#[async_trait]
impl SwitchToGuard for DenyAllSwitchToGuard {
async fn check(&self, _original: &str, _target: &str) -> GarrisonResult<()> {
Err(GarrisonError::NotPermission(
"core-switch-to-denied::".to_string(),
))
}
}