This commit is contained in:
2021-02-27 01:49:13 +00:00
parent 3250ccfe09
commit 9d4fbb70d7
8 changed files with 251 additions and 30 deletions

View File

@@ -28,7 +28,10 @@ export default {
let vm = this;
await fetchTranslatedText(vm);
//NOTE: if extension doesn't support a particular object add it here to the NoType default
if (vm.dataListSelection.ObjectType != 0) {
if (
vm.dataListSelection.ObjectType != 0 &&
vm.dataListSelection.ObjectType != window.$gz.type.PartInventoryRestock
) {
vm.rights = window.$gz.role.getRights(vm.dataListSelection.ObjectType);
}
vm.available = vm.rights.change;