From fcf52d59c4b954373d460e7fa0e5c465b8460ead Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 22 Jan 2020 19:44:53 +0000 Subject: [PATCH] --- server/AyaNova/DataList/UserDataList.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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""],