Skip to content

Commit

Permalink
Merge pull request #5313 from DanielBolef/top-level-page-fix
Browse files Browse the repository at this point in the history
Pass TabId instead of PortalId
  • Loading branch information
valadas authored Sep 21, 2022
2 parents 657c2c9 + af54d91 commit 42cf5a7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public IDictionary<string, object> GetSettings(MenuItem menuItem)
var settings = new Dictionary<string, object>
{
{ "canSeePagesList", this.securityService.CanViewPageList(menuItem.MenuId) },
{ "canAddPages", this.securityService.CanAddPage(PortalSettings.Current.PortalId) },
{ "canAddPages", this.securityService.CanAddPage(PortalSettings.Current?.ActiveTab?.TabID ?? 0) },
{ "portalName", PortalSettings.Current.PortalName },
{ "currentPagePermissions", this.securityService.GetCurrentPagePermissions() },
{ "currentPageName", PortalSettings.Current?.ActiveTab?.TabName },
Expand Down

0 comments on commit 42cf5a7

Please sign in to comment.