diff --git a/server/AyaNova/DataList/UserDataList.cs b/server/AyaNova/DataList/UserDataList.cs index c86a85d7..bc6a8865 100644 --- a/server/AyaNova/DataList/UserDataList.cs +++ b/server/AyaNova/DataList/UserDataList.cs @@ -7,11 +7,11 @@ namespace AyaNova.DataList public UserDataList() { + DefaultListObjectType = AyaType.User; ListKey = nameof(UserDataList); SQLFrom = "from auser"; - FullListAllowedRoles = AuthorizationRoles.AllInternalStaff;//anyone but clients and subcontractors (just for test) - MiniListAllowedRoles = AuthorizationRoles.All;//anyone (so can select on forms) - DefaultListObjectType = AyaType.User; + FullListAllowedRoles = BizRoles.GetRoleSet(DefaultListObjectType).ReadFullRecord;//anyone but clients and subcontractors (just for test) + MiniListAllowedRoles = AuthorizationRoles.All;//anyone (so can select on forms) DefaultDataListDisplayTemplate = @" { ""full"":[""username"",""useremployeenumber"",""useractive"",""usernotes"",""userroles""],