Skip to content
Permalink
Browse files

Merge branch 'master' into develop

  • Loading branch information...
jobachhu committed Nov 27, 2018
2 parents a4aa671 + d6bd37c commit fc59c3f0016a776fd56837944d95a3f5fd87883d
@@ -88,6 +88,10 @@ protected void configure(HttpSecurity httpSecurity) throws Exception {
httpSecurity.authorizeRequests()
.antMatchers("/").permitAll();
}
if (guestAccessProperties.isAlwaysAllowContentPages()) {
httpSecurity.authorizeRequests()
.antMatchers("/pages/**").permitAll();
}
httpSecurity.authorizeRequests()
.antMatchers("/images/**").permitAll()
.antMatchers("/css/**").permitAll()
@@ -35,6 +35,11 @@ public GuestAccess getGuestAccess() {
*/
private boolean alwaysAllowHomepage = true;

/**
* Override to allow access to the about pages page even if guest access is disabled.
*/
private boolean alwaysAllowContentPages = false;

/**
* If false, the platform does not allow registering new members. Existing members will
* still be able to log in.
@@ -90,6 +95,14 @@ public boolean isAllowSso() {
public void setAllowSso(boolean allowSso) {
this.allowSso = allowSso;
}

public boolean isAlwaysAllowContentPages() {
return alwaysAllowContentPages;
}

public void setAlwaysAllowContentPages(boolean alwaysAllowContentPages) {
this.alwaysAllowContentPages = alwaysAllowContentPages;
}
}

public static class Cache {

0 comments on commit fc59c3f

Please sign in to comment.
You can’t perform that action at this time.