mirror of
https://shylinux.com/x/icebergs
synced 2025-04-28 18:22:02 +08:00
fix role
This commit is contained in:
parent
54beabaac6
commit
a1d4eb2d5d
@ -105,7 +105,7 @@ var Index = &ice.Context{Name: "aaa", Help: "认证模块",
|
|||||||
if m.Option(ice.MSG_USERROLE) == ice.ROLE_ROOT {
|
if m.Option(ice.MSG_USERROLE) == ice.ROLE_ROOT {
|
||||||
// 超级用户
|
// 超级用户
|
||||||
m.Echo("ok")
|
m.Echo("ok")
|
||||||
} else if _role_right(m, arg[1], strings.Split(kit.Keys(arg[2:]), ".")...) {
|
} else if _role_right(m, kit.Select("void", arg, 1), strings.Split(kit.Keys(arg[2:]), ".")...) {
|
||||||
// 其它用户
|
// 其它用户
|
||||||
m.Echo("ok")
|
m.Echo("ok")
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user