判断修改节点级别权限

This commit is contained in:
刘祥超
2022-04-07 21:37:13 +08:00
parent 62933cf637
commit 9af9d0192d
3 changed files with 17 additions and 1 deletions

View File

@@ -0,0 +1,9 @@
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
//go:build !plus
// +build !plus
package node
func (this *UpdateAction) CanUpdateLevel(level int32) bool {
return level <= 1
}