fn has_privilege_impl_captured( user_name: &str, object: &Object, actions: &Vec<(Action, bool)>, ) -> Result<bool>