Modify aygetname postgres function to handle translation of items that do not have a name, also code to back it at server
This commit is contained in:
@@ -55,10 +55,10 @@ namespace AyaNova.Models
|
||||
DataListSavedFilterBiz filterbiz = new DataListSavedFilterBiz(ct, userId, userTranslationId, userRoles);
|
||||
SavedFilter = await filterbiz.GetAsync(selectedRequest.FilterId);
|
||||
}
|
||||
var DataList = DataListFactory.GetAyaDataList(selectedRequest.DataListKey);
|
||||
var DataList = DataListFactory.GetAyaDataList(selectedRequest.DataListKey, userTranslationId);
|
||||
if (DataList == null)
|
||||
throw new System.ArgumentOutOfRangeException($"DataList \"{selectedRequest.DataListKey}\" specified does not exist");
|
||||
|
||||
|
||||
//check rights
|
||||
if (!userRoles.HasAnyFlags(DataList.AllowedRoles))
|
||||
throw new System.UnauthorizedAccessException($"DataList \"{selectedRequest.DataListKey}\" required Roles not found for this user");
|
||||
|
||||
Reference in New Issue
Block a user