diff --git a/server/AyaNova/biz/BizRoles.cs b/server/AyaNova/biz/BizRoles.cs index bf29bf00..0a9e4edd 100644 --- a/server/AyaNova/biz/BizRoles.cs +++ b/server/AyaNova/biz/BizRoles.cs @@ -259,7 +259,7 @@ namespace AyaNova.Biz Select = AuthorizationRoles.All }); - //////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////// //TaxCode // roles.Add(AyaType.TaxCode, new BizRoleSet() @@ -276,6 +276,29 @@ namespace AyaNova.Biz }); + //////////////////////////////////////////////////////////// + //SERVICE BANK + // + roles.Add(AyaType.ServiceBank, new BizRoleSet() + { + //The Change role settings is intended to + //apply to directly making a service bank entry i.e. adding to the bank + //when deducting from the bank the role required is for the object that is being banked + //Subcontractors are deliberately excluded here + //on the fence about sales as it's conceivable that a salesman sells bank time and then enters it but + //that's really in the realm of accounting, bizadmin or most obviously dispatch + Change = AuthorizationRoles.BizAdminFull + | AuthorizationRoles.DispatchFull + | AuthorizationRoles.AccountingFull, + ReadFullRecord = AuthorizationRoles.BizAdminLimited + | AuthorizationRoles.DispatchLimited + | AuthorizationRoles.SalesLimited + | AuthorizationRoles.TechLimited + | AuthorizationRoles.SalesFull + | AuthorizationRoles.TechFull, + Select = AuthorizationRoles.All + }); + //////////////////////////////////////////////////////////// //Quote //