This commit is contained in:
@@ -421,16 +421,17 @@ todo: many biz objects are not using new PUT methodology
|
|||||||
########################################################################################################################
|
########################################################################################################################
|
||||||
|
|
||||||
|
|
||||||
CURRENTLY DOING:
|
CURRENTLY DOING: Sections substantially done, next step is to do the individual form fields
|
||||||
|
i.e. make userid read only, remove hyperlinks to source object, hide and readonly fields as required for each available section
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
|
|
||||||
Modify client to not show and / or prevent restricted actions
|
Modify client to not show and / or prevent restricted actions
|
||||||
Hide sections / fields as required
|
Hide sections / fields as required
|
||||||
|
|
||||||
Test again and ensure it looks correct and works correct for each role
|
Test again and ensure it looks correct and works correct for each role
|
||||||
Test each of the three restricted roles and one full role
|
Test each of the three restricted roles and one full role
|
||||||
|
Test reporting, does it really not show reports outside of roles??
|
||||||
|
|
||||||
|
|
||||||
value.userIsRestrictedType
|
value.userIsRestrictedType
|
||||||
|
|||||||
@@ -774,10 +774,18 @@ export default {
|
|||||||
return this.pvm.rights.change && this.pvm.subRights.expenses.create;
|
return this.pvm.rights.change && this.pvm.subRights.expenses.create;
|
||||||
},
|
},
|
||||||
canDelete: function() {
|
canDelete: function() {
|
||||||
return this.activeItemIndex != null && this.canDeleteAll;
|
return (
|
||||||
|
this.activeItemIndex != null &&
|
||||||
|
this.pvm.rights.change &&
|
||||||
|
this.pvm.subRights.expenses.delete
|
||||||
|
);
|
||||||
},
|
},
|
||||||
canDeleteAll: function() {
|
canDeleteAll: function() {
|
||||||
return this.pvm.rights.change && this.pvm.subRights.expenses.delete;
|
return (
|
||||||
|
this.pvm.rights.change &&
|
||||||
|
this.pvm.subRights.expenses.delete &&
|
||||||
|
!this.value.userIsRestrictedType
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user