Fix mismatched return type for get_restriction_mode