Полная зачистка legacy + закрытие fix24.1/fix24.2 + обновление логотипа
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { useAccountStoreHook } from "@/store/modules/account";
|
||||
import { useAdminStoreHook } from "@/store/modules/admin";
|
||||
import { Directive, DirectiveBinding } from "vue";
|
||||
|
||||
/**
|
||||
@@ -10,7 +10,7 @@ export const hasRole: Directive = {
|
||||
|
||||
if (value) {
|
||||
const requiredRoles = value; // Коды ролей, требуемые DOM-привязкой
|
||||
const { roles } = useAccountStoreHook();
|
||||
const { roles } = useAdminStoreHook();
|
||||
const hasRole = roles.some((perm) => {
|
||||
return requiredRoles.includes(perm);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user