коммит произвёл
GitHub
родитель
c0ea57ac6c
Коммит
36ac3a43b1
@@ -55,4 +55,5 @@ const (
|
||||
MigrationRemoveGetAnalyticsPermission = "remove_get_analytics_permission"
|
||||
MigrationAddSysconsoleMobileSecurityPermission = "add_sysconsole_mobile_security_permission"
|
||||
MigrationKeyAddChannelBannerPermissions = "add_channel_banner_permissions"
|
||||
MigrationKeyAddEditFileAttachmentPermission = "add_edit_file_attachment_permission"
|
||||
)
|
||||
|
||||
@@ -169,6 +169,7 @@ var PermissionReadLicenseInformation *Permission
|
||||
var PermissionManageLicenseInformation *Permission
|
||||
var PermissionManagePublicChannelBanner *Permission
|
||||
var PermissionManagePrivateChannelBanner *Permission
|
||||
var PermissionEditFileAttachment *Permission
|
||||
|
||||
var PermissionSysconsoleReadAbout *Permission
|
||||
var PermissionSysconsoleWriteAbout *Permission
|
||||
@@ -1299,6 +1300,13 @@ func initializePermissions() {
|
||||
PermissionScopeChannel,
|
||||
}
|
||||
|
||||
PermissionEditFileAttachment = &Permission{
|
||||
"edit_file_attachment",
|
||||
"",
|
||||
"",
|
||||
PermissionScopeChannel,
|
||||
}
|
||||
|
||||
PermissionReadOtherUsersTeams = &Permission{
|
||||
"read_other_users_teams",
|
||||
"authentication.permissions.read_other_users_teams.name",
|
||||
@@ -2538,6 +2546,7 @@ func initializePermissions() {
|
||||
PermissionOrderBookmarkPrivateChannel,
|
||||
PermissionManagePublicChannelBanner,
|
||||
PermissionManagePrivateChannelBanner,
|
||||
PermissionEditFileAttachment,
|
||||
}
|
||||
|
||||
GroupScopedPermissions := []*Permission{
|
||||
|
||||
@@ -866,6 +866,7 @@ func MakeDefaultRoles() map[string]*Role {
|
||||
PermissionEditPost.Id,
|
||||
PermissionCreatePost.Id,
|
||||
PermissionUseChannelMentions.Id,
|
||||
PermissionEditFileAttachment.Id,
|
||||
},
|
||||
SchemeManaged: true,
|
||||
BuiltIn: true,
|
||||
@@ -892,6 +893,7 @@ func MakeDefaultRoles() map[string]*Role {
|
||||
PermissionManagePrivateChannelMembers.Id,
|
||||
PermissionDeletePost.Id,
|
||||
PermissionEditPost.Id,
|
||||
PermissionEditFileAttachment.Id,
|
||||
PermissionAddBookmarkPublicChannel.Id,
|
||||
PermissionEditBookmarkPublicChannel.Id,
|
||||
PermissionDeleteBookmarkPublicChannel.Id,
|
||||
|
||||
Ссылка в новой задаче
Block a user