Skip to content

Commit

Permalink
Merge pull request #26 from valadas/Issue4
Browse files Browse the repository at this point in the history
Fixed an issue where setting Use Permissions would not apply
  • Loading branch information
valadas authored Jul 14, 2018
2 parents be33130 + b1f5426 commit 7b35154
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Links.ascx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ private void Page_Load(System.Object sender, System.EventArgs e)
if (this.ModuleContentType == Enums.ModuleContentTypes.Friends)
isInARole = true;

if (isInARole | link.GrantRoles.Contains(";-2;") | link.GrantRoles.Contains(";-1;") | this.UserInfo.IsSuperUser | this.UserInfo.IsInRole(this.PortalSettings.AdministratorRoleName))
if (!this.UsePermissions | isInARole | link.GrantRoles.Contains(";-2;") | link.GrantRoles.Contains(";-1;") | this.UserInfo.IsSuperUser | this.UserInfo.IsInRole(this.PortalSettings.AdministratorRoleName))

linksToShow.Add(link);
}
Expand Down
3 changes: 3 additions & 0 deletions ReleaseNotes.htm
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ <h3>Bug fixes</h3>
<li>
Fixed build dependencies issues
</li>
<li>
Fixed an issue where setting Use Permissions to No would have no effect after it was set to Yes.
</li>
</ul>
<hr />

Expand Down

0 comments on commit 7b35154

Please sign in to comment.