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
|
||||
Hide sections / fields as required
|
||||
|
||||
Hide sections / fields as required
|
||||
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 reporting, does it really not show reports outside of roles??
|
||||
|
||||
|
||||
value.userIsRestrictedType
|
||||
@@ -459,7 +460,7 @@ Subcontractor / tech limited modifications
|
||||
|
||||
TODO: Outside Service repair COST is still showing for restricted and other users
|
||||
should it?
|
||||
|
||||
|
||||
todo: units on work order are not limited to customer on work order??
|
||||
todo: looks like wont' need subrights system, need to disentangle and remove it from workorder
|
||||
todo: Status on work order doesn't seem to be preventing "Who can select" by role properly
|
||||
|
||||
@@ -774,10 +774,18 @@ export default {
|
||||
return this.pvm.rights.change && this.pvm.subRights.expenses.create;
|
||||
},
|
||||
canDelete: function() {
|
||||
return this.activeItemIndex != null && this.canDeleteAll;
|
||||
return (
|
||||
this.activeItemIndex != null &&
|
||||
this.pvm.rights.change &&
|
||||
this.pvm.subRights.expenses.delete
|
||||
);
|
||||
},
|
||||
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