Skip to content

Commit

Permalink
SAK-31345 Fix Hiding/unhiding "Site Info" (sakaiproject#3254)
Browse files Browse the repository at this point in the history
Add check to see if SITE_VISIT is in permissions list before trying to
remove it.
  • Loading branch information
ansorgej authored and ottenhoff committed Oct 13, 2016
1 parent 85d1576 commit 3592e97
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,9 @@ private boolean pageVisibilityHelper(String pageId, boolean visible, boolean ena
if (!(permissions.isEmpty())) {
// We never change SITE_UPD at all.
permissions.remove(SITE_UPD);
permissions.remove(SITE_VISIT);
if (permissions.indexOf(SITE_VISIT) > 0) {
permissions.remove(SITE_VISIT);
}
Set<Role> roles = getRolesWithout(authzGroup, SITE_UPD);


Expand Down

0 comments on commit 3592e97

Please sign in to comment.