Skip to content

Commit

Permalink
Pass TabId instead of PortalId
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielBolef committed Sep 21, 2022
1 parent 657c2c9 commit af54d91
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 bool Visible(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 af54d91

Please sign in to comment.