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