public ExistsDataPermission ( IEnumerable |
||
subjectIds | IEnumerable |
|
entityId | long | |
dataId | long | |
rightType | RightType | |
return | bool |
public ActionResult Datasets_Select() { DatasetManager datasetManager = new DatasetManager(); PermissionManager permissionManager = new PermissionManager(); SubjectManager subjectManager = new SubjectManager(); // DATA //var ids = datasetManager.GetDatasetLatestIds(); List<DatasetVersion> data = datasetManager.GetDatasetLatestVersions(); // .GetDatasetLatestVersions(ids); List<DatasetGridRowModel> datasets = new List<DatasetGridRowModel>(); data.ForEach(d => datasets.Add(DatasetGridRowModel.Convert(d, permissionManager.ExistsDataPermission(subjectManager.GetGroupByName("everyone").Id, 1, d.Id, RightType.View)))); return View(new GridModel<DatasetGridRowModel> { Data = datasets }); }