app/services/test_economy_management/base.rb
def validate_access

      return success if GlobalConstant::Base.sandbox_sub_environment?

      return success if GlobalConstant::Base.activate_test_economy_auth_token.present? &&
          @auth_token == GlobalConstant::Base.activate_test_economy_auth_token &&
          is_ost_managed_economy? && is_ost_manager?

      error_with_data(
          'tem_b_1',
          'unauthorized_to_perform_action',
          GlobalConstant::ErrorAction.default
      )

    end
# Check is Test Economy Activation is allowed for this Economy
#
# * Author: Puneet
# * Date: 10/04/2019
# * Reviewed By: Sunil
#
# @return [Result::Base]
#
Check is Test Economy Activation is allowed for this Economy
Author: Puneet
Date: 10/04/2019
Reviewed By: Sunil
Check is Test Economy Activation is allowed for this Economy Author : Puneet Date : 10 / 04 / 2019 Reviewed By : Sunil
def validate_access
      return success if GlobalConstant::Base.sandbox_sub_environment?
      return success if GlobalConstant::Base.activate_test_economy_auth_token.present? &&
          @auth_token == GlobalConstant::Base.activate_test_economy_auth_token &&
          is_ost_managed_economy? && is_ost_manager?
      error_with_data(
          'tem_b_1',
          'unauthorized_to_perform_action',
          GlobalConstant::ErrorAction.default
      )
    end
def validate_access return success if GlobalConstant :: Base . sandbox_sub_environment? return success if GlobalConstant :: Base . activate_test_economy_auth_token . present? && @auth_token == GlobalConstant :: Base . activate_test_economy_auth_token && is_ost_managed_economy? && is_ost_manager? error_with_data ( 'tem_b_1' , 'unauthorized_to_perform_action' , GlobalConstant :: ErrorAction . default ) end
Check is Test Economy Activation is allowed for this Economy
 Author: Puneet
 Date: 10/04/2019
 Reviewed By: Sunil
Check is Test Economy Activation is allowed for this Economy Author : Puneet Date : 10 / 04 / 2019 Reviewed By : Sunil
None
Result::Base