Add organization to all authorized endpoints
We use it in filtering quite a bit.
This commit is contained in:
parent
e1bcbf79b1
commit
502a4d15df
6 changed files with 23 additions and 43 deletions
|
|
@ -24,7 +24,7 @@ func getSignin(w http.ResponseWriter, r *http.Request) {
|
|||
signin(w, errorCode, next)
|
||||
}
|
||||
|
||||
func getSignout(w http.ResponseWriter, r *http.Request, user *models.User) {
|
||||
func getSignout(w http.ResponseWriter, r *http.Request, org *models.Organization, user *models.User) {
|
||||
auth.SignoutUser(r, user)
|
||||
http.Redirect(w, r, "/signin", http.StatusFound)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue