mirror of
https://shylinux.com/x/community
synced 2025-07-01 21:21:19 +08:00
add some
This commit is contained in:
parent
e1daa01a1d
commit
760050a8fe
@ -36,7 +36,9 @@ func (s profile) List(m *ice.Message, arg ...string) {
|
|||||||
s.Select(m, model.UID, arg[0]).Action()
|
s.Select(m, model.UID, arg[0]).Action()
|
||||||
name := m.Append(model.NAME)
|
name := m.Append(model.NAME)
|
||||||
button := []ice.Any{}
|
button := []ice.Any{}
|
||||||
|
if AuthType(kit.Int(m.Append(model.AUTH_TYPE))) == AuthService {
|
||||||
button = append(button, s.Enter)
|
button = append(button, s.Enter)
|
||||||
|
}
|
||||||
kit.If(s.IsWorker(m), func() { button = append(button, s.Modify) })
|
kit.If(s.IsWorker(m), func() { button = append(button, s.Modify) })
|
||||||
switch AuthType(kit.Int(m.Append(model.AUTH_TYPE))) {
|
switch AuthType(kit.Int(m.Append(model.AUTH_TYPE))) {
|
||||||
case AuthService:
|
case AuthService:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user