Skip to content

Commit

Permalink
Fixed an issue where setting Use Permissions to No would have no effe…
Browse files Browse the repository at this point in the history
…ct after it was set to Yes.

Closes #4
  • Loading branch information
valadas committed Jul 14, 2018
1 parent be33130 commit b1f5426
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 b1f5426

Please sign in to comment.