test on both admin and partner

parent 6b7ef89f
......@@ -88,11 +88,14 @@ export default {
name: "MyHistoriana",
computed: {
childs() {
if (this.$store.getters["user/isPartner"]) {
if (this.$store.getters["user/isPartner"]||this.$store.getters["user/isAdmin"]) {
return childs;
} else {
return childs.filter(e => {
return !e.isPartner;
let check = [e.isPartner, e.isAdmin].some(v => {
return v
})
return !check
});
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment