Bläddra i källkod

fix: admin不受transferEnabled限制,hasTransferPermission加is_platform_user判断

alphaH 4 dagar sedan
förälder
incheckning
64a0a01d93
1 ändrade filer med 3 tillägg och 1 borttagningar
  1. 3 1
      frontend/src/views/module_payment/account/index.vue

+ 3 - 1
frontend/src/views/module_payment/account/index.vue

@@ -802,7 +802,9 @@ const consumeFormRef = ref<FormInstance>();
 const overviewRef = ref<InstanceType<typeof AccountOverview>>();
 
 const currentEnterpriseId = computed(() => enterpriseStore.getCurrentEnterprise?.enterprise_id);
-const hasTransferPermission = computed(() => enterpriseStore.getCurrentEnterprise?.transfer_enabled === true);
+const hasTransferPermission = computed(() =>
+  userStore.is_platform_user || enterpriseStore.getCurrentEnterprise?.transfer_enabled === true
+);
 const cureentEnterprise = computed(() => enterpriseStore.getCurrentEnterprise);
 
 const accountInfo = ref<{