mirror of https://github.com/cbeuw/Cloak
Fix wrong condition for isAdmin
This commit is contained in:
parent
8967819830
commit
83fb53f0d4
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue