Renamed roles and trans keys "Limited"->"Restricted" "Full" -> ""
This commit is contained in:
@@ -6,7 +6,7 @@ namespace AyaNova.DataList
|
||||
{
|
||||
public EventDataList()
|
||||
{
|
||||
//NOTE: used this type because it's full BizFull and read only BizLimited only which is appropriate and there is no event type
|
||||
//NOTE: used this type because it's full BizFull and read only Bizrestricted only which is appropriate and there is no event type
|
||||
DefaultListAType = AyaType.Global;
|
||||
SQLFrom = "from aevent left join auser on (aevent.userid=auser.id)";
|
||||
var RoleSet = BizRoles.GetRoleSet(DefaultListAType);
|
||||
|
||||
@@ -165,11 +165,11 @@ namespace AyaNova.DataList
|
||||
{
|
||||
List<DataListFilterOption> ret = new List<DataListFilterOption>();
|
||||
bool HasSupervisorRole =
|
||||
userRoles.HasFlag(AuthorizationRoles.BizAdminFull)
|
||||
|| userRoles.HasFlag(AuthorizationRoles.DispatchFull)
|
||||
|| userRoles.HasFlag(AuthorizationRoles.InventoryFull)
|
||||
|| userRoles.HasFlag(AuthorizationRoles.SalesFull)
|
||||
|| userRoles.HasFlag(AuthorizationRoles.AccountingFull);
|
||||
userRoles.HasFlag(AuthorizationRoles.BizAdmin)
|
||||
|| userRoles.HasFlag(AuthorizationRoles.Service)
|
||||
|| userRoles.HasFlag(AuthorizationRoles.Inventory)
|
||||
|| userRoles.HasFlag(AuthorizationRoles.Sales)
|
||||
|| userRoles.HasFlag(AuthorizationRoles.Accounting);
|
||||
|
||||
if (!HasSupervisorRole)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user