Fix wrong condition for isAdmin

This commit is contained in:
Andy Wang 2019-08-12 22:48:51 +01:00
parent 8967819830
commit 83fb53f0d4
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ var version string
func makeSession(sta *client.State, isAdmin bool) *mux.Session {
log.Info("Attemtping to start a new session")
if isAdmin {
if !isAdmin {
// sessionID is usergenerated. There shouldn't be a security concern because the scope of
// sessionID is limited to its UID.
quad := make([]byte, 4)