This commit is contained in:
2020-12-16 21:17:32 +00:00
parent 961b97966a
commit 7c0421bb1c
6 changed files with 163 additions and 3 deletions

View File

@@ -39,6 +39,8 @@ namespace AyaNova.Biz
//but then I'm wondering if some items under workorder might have seperate roles...
//maybe it's workorder by default unless something needs an override
//BizRules will handle finer grained rights, this is just the big picture rights or default if no finer required
////////////////////////////////////////////////////////////
//CUSTOMER
// (any change copy to customer notes, head office)
@@ -110,7 +112,7 @@ namespace AyaNova.Biz
roles.Add(AyaType.PurchaseOrder, new BizRoleSet()
{
Change = AuthorizationRoles.InventoryFull | AuthorizationRoles.BizAdminFull | AuthorizationRoles.AccountingFull,
ReadFullRecord = AuthorizationRoles.DispatchFull | AuthorizationRoles.InventoryLimited | AuthorizationRoles.BizAdminLimited | AuthorizationRoles.DispatchLimited,
ReadFullRecord = AuthorizationRoles.DispatchFull | AuthorizationRoles.InventoryLimited | AuthorizationRoles.BizAdminLimited | AuthorizationRoles.DispatchLimited,
Select = AuthorizationRoles.All
});
@@ -594,7 +596,7 @@ namespace AyaNova.Biz
});
////////////////////////////////////////////////////////////
//MEMO
// (everyone but outside users Customer and HO can send and receive memos)
@@ -605,6 +607,26 @@ namespace AyaNova.Biz
Select = AuthorizationRoles.AllInsideUserRoles,
});
////////////////////////////////////////////////////////////
//REMINDER
// (everyone but outside users Customer and HO)
roles.Add(AyaType.Reminder, new BizRoleSet()
{
Change = AuthorizationRoles.AllInsideUserRoles,
ReadFullRecord = AuthorizationRoles.AllInsideUserRoles,
Select = AuthorizationRoles.AllInsideUserRoles,
});
////////////////////////////////////////////////////////////
//REVIEW
// (everyone but outside users and follows object rights)
roles.Add(AyaType.Review, new BizRoleSet()
{
Change = AuthorizationRoles.AllInsideUserRoles,
ReadFullRecord = AuthorizationRoles.AllInsideUserRoles,
Select = AuthorizationRoles.AllInsideUserRoles,
});
////////////////////////////////////////////////////////////////////
#endregion all roles init