noauth와 devflag 분리
This commit is contained in:
@ -156,6 +156,10 @@ type serviceDescription struct {
|
||||
}
|
||||
|
||||
func (sh *serviceDescription) isValidToken(apiToken primitive.ObjectID) bool {
|
||||
if *devflag {
|
||||
return true
|
||||
}
|
||||
|
||||
if apiToken.IsZero() {
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user