mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 14:50:55 +03:00
allow to edit profile to users logged in via OIDC
Fixes #942 Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -484,7 +484,7 @@ func TestOIDCLoginLogout(t *testing.T) {
|
||||
r.RequestURI = webClientProfilePath
|
||||
r.Header.Set("Cookie", fmt.Sprintf("%v=%v", oidcCookieKey, tokenCookie))
|
||||
server.router.ServeHTTP(rr, r)
|
||||
assert.Equal(t, http.StatusForbidden, rr.Code)
|
||||
assert.Equal(t, http.StatusOK, rr.Code)
|
||||
// the user can access the allowed pages
|
||||
rr = httptest.NewRecorder()
|
||||
r, err = http.NewRequest(http.MethodGet, webClientFilesPath, nil)
|
||||
|
||||
Reference in New Issue
Block a user