MM-22153: Adds tracking of channel moderation. (#14095)
* MM-22153: Adds tracking of channel moderation. * MM-22153: Fixes test setup. * MM-22153: Split role constants into scope and type.
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
4823b3861a
Коммит
dd0b0a3d67
@@ -9,6 +9,9 @@ import (
|
||||
"strings"
|
||||
)
|
||||
|
||||
type RoleType string
|
||||
type RoleScope string
|
||||
|
||||
const (
|
||||
SYSTEM_GUEST_ROLE_ID = "system_guest"
|
||||
SYSTEM_USER_ROLE_ID = "system_user"
|
||||
@@ -30,6 +33,14 @@ const (
|
||||
ROLE_NAME_MAX_LENGTH = 64
|
||||
ROLE_DISPLAY_NAME_MAX_LENGTH = 128
|
||||
ROLE_DESCRIPTION_MAX_LENGTH = 1024
|
||||
|
||||
RoleScopeSystem RoleScope = "System"
|
||||
RoleScopeTeam RoleScope = "Team"
|
||||
RoleScopeChannel RoleScope = "Channel"
|
||||
|
||||
RoleTypeGuest RoleType = "Guest"
|
||||
RoleTypeUser RoleType = "User"
|
||||
RoleTypeAdmin RoleType = "Admin"
|
||||
)
|
||||
|
||||
type Role struct {
|
||||
|
||||
Ссылка в новой задаче
Block a user