Skip to content

Commit

Permalink
DNN-9338: Renamed variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
Kan Ma authored and zyhfish committed Feb 10, 2017
1 parent 76fe470 commit dd50a0a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,12 @@ internal static bool CanSeeVersionedPages(TabInfo tab)
return false;
}

var currentPortal = PortalController.Instance.GetCurrentPortalSettings();
if (currentPortal == null)
var currentPortalSettings = PortalController.Instance.GetCurrentPortalSettings();
if (currentPortalSettings == null)
{
return false;
}
var isAdminUser = currentPortal.UserInfo.IsSuperUser || PortalSecurity.IsInRole(currentPortal.AdministratorRoleName);
var isAdminUser = currentPortalSettings.UserInfo.IsSuperUser || PortalSecurity.IsInRole(currentPortalSettings.AdministratorRoleName);
if (isAdminUser)
{
return true;
Expand Down

0 comments on commit dd50a0a

Please # to comment.