1890: Fix check_authorization logic