pub fn require_resource_access( resource: &'static str, action: &'static str, ) -> impl Fn(Request, Next) -> Pin<Box<dyn Future<Output = Result<Response, StatusCode>> + Send>> + Clone
RBAC middleware for resource access