forked from verdnatura/salix-front
feat: remove isEmployee by acl.back
This commit is contained in:
parent
f2304ab6f0
commit
aa2885e6ca
|
@ -80,7 +80,7 @@ export const useNavigationStore = defineStore('navigationStore', () => {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function fetchPinned() {
|
async function fetchPinned() {
|
||||||
if (pinnedModules.value.length || !role.isEmployee()) return;
|
if (pinnedModules.value.length) return;
|
||||||
|
|
||||||
const response = await axios.get('StarredModules/getStarredModules');
|
const response = await axios.get('StarredModules/getStarredModules');
|
||||||
pinnedModules.value = response.data.map((row) => row.moduleFk);
|
pinnedModules.value = response.data.map((row) => row.moduleFk);
|
||||||
|
|
Loading…
Reference in New Issue