added dialog for editing community profile
This commit is contained in:
@@ -11,6 +11,7 @@ package database
|
||||
|
||||
import (
|
||||
_ "embed"
|
||||
"fmt"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
@@ -184,6 +185,7 @@ type Role interface {
|
||||
ID() string
|
||||
Name() string
|
||||
Level() uint16
|
||||
LevelStr() string
|
||||
}
|
||||
|
||||
func (r *CfgRole) ID() string {
|
||||
@@ -198,6 +200,10 @@ func (r *CfgRole) Level() uint16 {
|
||||
return r.level
|
||||
}
|
||||
|
||||
func (r *CfgRole) LevelStr() string {
|
||||
return fmt.Sprintf("%d", r.level)
|
||||
}
|
||||
|
||||
// RoleList defines a list of security roles.
|
||||
type RoleList interface {
|
||||
Roles() []Role
|
||||
|
||||
Reference in New Issue
Block a user