fn check_swap_rename_privilege( session_impl: &Arc<SessionImpl>, src_owner: u32, target_owner: u32, ) -> Result<(), RwError>
Check if the session user has the privilege to swap and rename the objects.