瀏覽代碼

modify by hyb for cancel permission check

hyb 7 年之前
父節點
當前提交
c1a04796a9
共有 1 個文件被更改,包括 4 次插入3 次删除
  1. 4 3
      httphandler.go

+ 4 - 3
httphandler.go

@@ -119,8 +119,9 @@ func checkSignature(body []byte, timestamp, signature string) bool {
 
 func checkPermission(timestamp, signature string, body []byte) (int, bool) {
 
-	if checkSignature(body, timestamp, signature) == false {
-		return NO_AUTH, false
-	}
+	// modify by hyb  cancel checkPermission
+	//if checkSignature(body, timestamp, signature) == false {
+	//	return NO_AUTH, false
+	//}
 	return OK, true
 }