Skip to content

Commit

Permalink
Merge branch 'main' into davidpuplava/update-x-status-task-shape-not-…
Browse files Browse the repository at this point in the history
…found
  • Loading branch information
hishamco authored Aug 20, 2024
2 parents a4504f3 + c54dc4e commit 8d16b9d
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,13 @@ public WorkflowTrimmingDisplayDriver(
protected override string SettingsGroupId
=> GroupId;

public override IDisplayResult Edit(ISite site, WorkflowTrimmingSettings settings, BuildEditorContext context)
public override async Task<IDisplayResult> EditAsync(ISite model, WorkflowTrimmingSettings settings, BuildEditorContext context)
{
if (!await _authorizationService.AuthorizeAsync(_httpContextAccessor.HttpContext?.User, Permissions.ManageWorkflowSettings))
{
return null;
}

return Initialize<WorkflowTrimmingViewModel>("WorkflowTrimming_Fields_Edit", async model =>
{
model.RetentionDays = settings.RetentionDays;
Expand Down

0 comments on commit 8d16b9d

Please sign in to comment.