Optimized check_rights for undefined cur_user