pub fn has_access_to_object( current_user: &UserCatalog, schema_name: &str, obj_id: u32, owner_id: u32, ) -> bool
Check if the current user has access to the object.