This commit is contained in:
2020-08-13 22:48:30 +00:00
parent 8b3596188a
commit 1aa13ec301
4 changed files with 32 additions and 77 deletions

View File

@@ -194,6 +194,10 @@ export default {
});
},
canOpen(otype) {
// console.log("Canopen type: ", otype);
// console.log("Openable:", this.ayaTypes[otype].openableObject);
// console.log("roleCanOpen", window.$gz.role.canOpen(otype));
// console.log("Role rights to type:", window.$gz.role.getRights(otype));
return (
this.ayaTypes[otype].openableObject && window.$gz.role.canOpen(otype)
);