diff --git a/src/hooks.rs b/src/hooks.rs index a069686..52a53a3 100644 --- a/src/hooks.rs +++ b/src/hooks.rs @@ -776,9 +776,10 @@ mod test { .unwrap(); let authorizer = move |ctx: AuthContext<'_>| match ctx.action { - AuthAction::Read { column_name, .. } if column_name == "private" => { - Authorization::Ignore - } + AuthAction::Read { + column_name: "private", + .. + } => Authorization::Ignore, AuthAction::DropTable { .. } => Authorization::Deny, AuthAction::Pragma { .. } => panic!("shouldn't be called"), _ => Authorization::Allow,