Skip to content

Commit 5fea3bf

Browse files
committed
#2317 change the rights for the tabs
1 parent 2d16096 commit 5fea3bf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Console/BExIS.Web.Shell/Areas/DDM/BExIS.Modules.Ddm.UI/Controllers/DashboardController.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,11 +320,14 @@ public ActionResult ShowMyDatasets(string entityname, RightType rightType, strin
320320
}
321321

322322
List<DatasetVersion> datasetVersions = datasetManager.GetDatasetLatestVersions(datasetIds, true);
323+
323324
foreach (var dsv in datasetVersions)
324325
{
325326
Object[] rowArray = new Object[8];
326327
string isValid = "no";
327328

329+
bool isOwn = rightType == RightType.Grant || rightType == RightType.Write ? true : false ;
330+
328331
string type = "file";
329332
if (dsv.Dataset.DataStructure?.Self is StructuredDataStructure)
330333
{
@@ -355,7 +358,7 @@ public ActionResult ShowMyDatasets(string entityname, RightType rightType, strin
355358
}
356359

357360
//
358-
rowArray[7] = entityPermissionManager.HasEffectiveRightsAsync(HttpContext.User.Identity.Name, typeof(Dataset), dsv.Dataset.Id, RightType.Write).Result;
361+
rowArray[7] = isOwn;
359362

360363
model.Add(new MyDatasetsModel(
361364
(long)rowArray[0],

0 commit comments

Comments
 (0)