aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/www/controllers/Site.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2022-12-08 07:26:58 +0300
committerGravatar Vitaly Takmazov2022-12-08 07:26:58 +0300
commit7b8a99a6074228a5680218690b7f1538ce7e8d1d (patch)
tree1a5803430b00737b3f36f79d3ecc4cdf40af6584 /src/main/java/com/juick/www/controllers/Site.java
parent5e0500933d2f805fe879ced9171c65839c72579b (diff)
Cleanup unused authorization checks handled by spring-security
Diffstat (limited to 'src/main/java/com/juick/www/controllers/Site.java')
-rw-r--r--src/main/java/com/juick/www/controllers/Site.java6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/main/java/com/juick/www/controllers/Site.java b/src/main/java/com/juick/www/controllers/Site.java
index aa6d574d..e28f8e15 100644
--- a/src/main/java/com/juick/www/controllers/Site.java
+++ b/src/main/java/com/juick/www/controllers/Site.java
@@ -451,9 +451,6 @@ public class Site {
@GetMapping("/pm/inbox")
protected String doGetInbox(@Visitor User visitor, ModelMap model) {
- if (visitor.isAnonymous()) {
- return "redirect:/login";
- }
visitor.setAvatar(webApp.getAvatarWebPath(visitor));
String title = "PM: Inbox";
List<Message> msgs = pmQueriesService.getLastPMInbox(visitor.getUid());
@@ -468,9 +465,6 @@ public class Site {
@GetMapping("/pm/sent")
protected String doGetSent(@Visitor User visitor, @RequestParam(required = false) String uname, ModelMap model) {
- if (visitor.isAnonymous()) {
- return "redirect:/login";
- }
visitor.setAvatar(webApp.getAvatarWebPath(visitor));
String title = "PM: Sent";
List<Message> msgs = pmQueriesService.getLastPMSent(visitor.getUid());