Selaa lähdekoodia

fix(bugs): 商品添加员工带看权益

tangning 3 vuotta sitten
vanhempi
commit
d40cec81be
2 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 1 1
      src/views/product/list.data.ts
  2. 1 1
      src/views/product/list.vue

+ 1 - 1
src/views/product/list.data.ts

@@ -150,7 +150,7 @@ function showAction(): boolean {
   if (getCheckRole(['staff']) && getEquity([1, 2])) {
     return true;
   }
-  if (getCheckRole(['company_admin']) && getEquity([2])) {
+  if (getCheckRole(['company_admin', 'staff']) && getEquity([2])) {
     return true;
   }
   if (getCheckRole(['super', 'plat_admin'])) {

+ 1 - 1
src/views/product/list.vue

@@ -179,7 +179,7 @@
         if (getCheckRole(['staff']) && getEquity([1, 2])) {
           return true;
         }
-        if (getCheckRole(['company_admin']) && getEquity([2])) {
+        if (getCheckRole(['company_admin', 'staff']) && getEquity([2])) {
           return true;
         }
         if (getCheckRole(['super', 'plat_admin'])) {