CHANGE: added team view, with submitted bookings for team members and send form for own bookings
This commit is contained in:
@@ -33,9 +33,9 @@ func LoginHandler(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
func UserHandler(w http.ResponseWriter, r *http.Request) {
|
||||
if !Session.Exists(r.Context(), "user") {
|
||||
http.Redirect(w, r, "/user/login", http.StatusSeeOther)
|
||||
}
|
||||
// if !Session.Exists(r.Context(), "user") {
|
||||
// http.Redirect(w, r, "/user/login", http.StatusSeeOther)
|
||||
// }
|
||||
switch r.Method {
|
||||
case http.MethodGet:
|
||||
showPWForm(w, r, 0)
|
||||
|
||||
Reference in New Issue
Block a user