diff options
author | James Moger <james.moger@gitblit.com> | 2013-05-19 19:41:32 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2013-05-19 19:41:32 -0400 |
commit | 6ef8d7cd37dcf8b742f23d461266ea7e94f0312d (patch) | |
tree | 3e1570ec1c98ff50f99a084e53ccb8dcdbe19550 /src/main/java/com/gitblit/wicket/AuthorizationStrategy.java | |
parent | 4570856f4a114ae93036554d8b4fb315b8bc5989 (diff) | |
download | gitblit-6ef8d7cd37dcf8b742f23d461266ea7e94f0312d.tar.gz gitblit-6ef8d7cd37dcf8b742f23d461266ea7e94f0312d.zip |
Overhauled navigation and flattened look
Diffstat (limited to 'src/main/java/com/gitblit/wicket/AuthorizationStrategy.java')
-rw-r--r-- | src/main/java/com/gitblit/wicket/AuthorizationStrategy.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main/java/com/gitblit/wicket/AuthorizationStrategy.java b/src/main/java/com/gitblit/wicket/AuthorizationStrategy.java index 765d8608..e36a50e8 100644 --- a/src/main/java/com/gitblit/wicket/AuthorizationStrategy.java +++ b/src/main/java/com/gitblit/wicket/AuthorizationStrategy.java @@ -24,7 +24,6 @@ import com.gitblit.GitBlit; import com.gitblit.Keys;
import com.gitblit.models.UserModel;
import com.gitblit.wicket.pages.BasePage;
-import com.gitblit.wicket.pages.RepositoriesPage;
public class AuthorizationStrategy extends AbstractPageAuthorizationStrategy implements
IUnauthorizedComponentInstantiationListener {
@@ -35,8 +34,8 @@ public class AuthorizationStrategy extends AbstractPageAuthorizationStrategy imp @SuppressWarnings({ "unchecked", "rawtypes" })
@Override
protected boolean isPageAuthorized(Class pageClass) {
- if (RepositoriesPage.class.equals(pageClass)) {
- // allow all requests to get to the RepositoriesPage with its inline
+ if (GitBlitWebApp.HOME_PAGE_CLASS.equals(pageClass)) {
+ // allow all requests to get to the HomePage with its inline
// authentication form
return true;
}
@@ -80,7 +79,7 @@ public class AuthorizationStrategy extends AbstractPageAuthorizationStrategy imp public void onUnauthorizedInstantiation(Component component) {
if (component instanceof BasePage) {
- throw new RestartResponseException(RepositoriesPage.class);
+ throw new RestartResponseException(GitBlitWebApp.HOME_PAGE_CLASS);
}
}
}
|