summaryrefslogtreecommitdiffstats
path: root/api/user.go
diff options
context:
space:
mode:
authorJoramWilander <jwawilander@gmail.com>2016-04-04 14:58:05 -0400
committerJoramWilander <jwawilander@gmail.com>2016-04-04 14:58:05 -0400
commita9458480d5615f233e1665081eb11a45974ba774 (patch)
tree6c16ea8509dd8eb69da4847bca4d4faecbe9cd1e /api/user.go
parenta309031d9af9907e2b7a78116bc84133939ed4f8 (diff)
downloadchat-a9458480d5615f233e1665081eb11a45974ba774.tar.gz
chat-a9458480d5615f233e1665081eb11a45974ba774.tar.bz2
chat-a9458480d5615f233e1665081eb11a45974ba774.zip
Minor fix for expired sessions
Diffstat (limited to 'api/user.go')
-rw-r--r--api/user.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/user.go b/api/user.go
index 60b92f90d..ab13cbb68 100644
--- a/api/user.go
+++ b/api/user.go
@@ -67,7 +67,7 @@ func InitUser(r *mux.Router) {
sr.Handle("/{id:[A-Za-z0-9]+}", ApiUserRequired(getUser)).Methods("GET")
sr.Handle("/{id:[A-Za-z0-9]+}/sessions", ApiUserRequired(getSessions)).Methods("GET")
sr.Handle("/{id:[A-Za-z0-9]+}/audits", ApiUserRequired(getAudits)).Methods("GET")
- sr.Handle("/{id:[A-Za-z0-9]+}/image", ApiUserRequired(getProfileImage)).Methods("GET")
+ sr.Handle("/{id:[A-Za-z0-9]+}/image", ApiUserRequiredTrustRequester(getProfileImage)).Methods("GET")
sr.Handle("/claim/email_to_oauth", ApiAppHandler(emailToOAuth)).Methods("POST")
sr.Handle("/claim/oauth_to_email", ApiUserRequired(oauthToEmail)).Methods("POST")