summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/mattermost/mattermost-server/v6/model/role.go
diff options
context:
space:
mode:
authordependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>2022-01-18 20:24:14 +0100
committerGitHub <noreply@github.com>2022-01-18 20:24:14 +0100
commitaad60c882e16cd2c8769a49e6d9f87a040590d62 (patch)
tree3bfe1f8953b40f9beb39c69db3a7647ea6de54d2 /vendor/github.com/mattermost/mattermost-server/v6/model/role.go
parentfecca575078a21dedb0cab213dde7fd97161c0fa (diff)
downloadmatterbridge-msglm-aad60c882e16cd2c8769a49e6d9f87a040590d62.tar.gz
matterbridge-msglm-aad60c882e16cd2c8769a49e6d9f87a040590d62.tar.bz2
matterbridge-msglm-aad60c882e16cd2c8769a49e6d9f87a040590d62.zip
Bump github.com/mattermost/mattermost-server/v6 from 6.1.0 to 6.3.0 (#1686)
Bumps [github.com/mattermost/mattermost-server/v6](https://github.com/mattermost/mattermost-server) from 6.1.0 to 6.3.0. - [Release notes](https://github.com/mattermost/mattermost-server/releases) - [Changelog](https://github.com/mattermost/mattermost-server/blob/master/CHANGELOG.md) - [Commits](https://github.com/mattermost/mattermost-server/compare/v6.1.0...v6.3.0) --- updated-dependencies: - dependency-name: github.com/mattermost/mattermost-server/v6 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Diffstat (limited to 'vendor/github.com/mattermost/mattermost-server/v6/model/role.go')
-rw-r--r--vendor/github.com/mattermost/mattermost-server/v6/model/role.go65
1 files changed, 65 insertions, 0 deletions
diff --git a/vendor/github.com/mattermost/mattermost-server/v6/model/role.go b/vendor/github.com/mattermost/mattermost-server/v6/model/role.go
index 68697838..b8d75d4b 100644
--- a/vendor/github.com/mattermost/mattermost-server/v6/model/role.go
+++ b/vendor/github.com/mattermost/mattermost-server/v6/model/role.go
@@ -41,6 +41,11 @@ func init() {
ChannelGuestRoleId,
ChannelUserRoleId,
ChannelAdminRoleId,
+
+ PlaybookAdminRoleId,
+ PlaybookMemberRoleId,
+ RunAdminRoleId,
+ RunMemberRoleId,
}, NewSystemRoleIDs...)
// When updating the values here, the values in mattermost-redux must also be updated.
@@ -362,6 +367,11 @@ const (
ChannelUserRoleId = "channel_user"
ChannelAdminRoleId = "channel_admin"
+ PlaybookAdminRoleId = "playbook_admin"
+ PlaybookMemberRoleId = "playbook_member"
+ RunAdminRoleId = "run_admin"
+ RunMemberRoleId = "run_member"
+
RoleNameMaxLength = 64
RoleDisplayNameMaxLength = 128
RoleDescriptionMaxLength = 1024
@@ -807,6 +817,61 @@ func MakeDefaultRoles() map[string]*Role {
BuiltIn: true,
}
+ roles[PlaybookAdminRoleId] = &Role{
+ Name: PlaybookAdminRoleId,
+ DisplayName: "authentication.roles.playbook_admin.name",
+ Description: "authentication.roles.playbook_admin.description",
+ Permissions: []string{
+ PermissionPublicPlaybookManageMembers.Id,
+ PermissionPublicPlaybookManageProperties.Id,
+ PermissionPrivatePlaybookManageMembers.Id,
+ PermissionPrivatePlaybookManageProperties.Id,
+ PermissionPublicPlaybookMakePrivate.Id,
+ },
+ SchemeManaged: true,
+ BuiltIn: true,
+ }
+
+ roles[PlaybookMemberRoleId] = &Role{
+ Name: PlaybookMemberRoleId,
+ DisplayName: "authentication.roles.playbook_member.name",
+ Description: "authentication.roles.playbook_member.description",
+ Permissions: []string{
+ PermissionPublicPlaybookView.Id,
+ PermissionPublicPlaybookManageMembers.Id,
+ PermissionPublicPlaybookManageProperties.Id,
+ PermissionPrivatePlaybookView.Id,
+ PermissionPrivatePlaybookManageMembers.Id,
+ PermissionPrivatePlaybookManageProperties.Id,
+ PermissionRunCreate.Id,
+ },
+ SchemeManaged: true,
+ BuiltIn: true,
+ }
+
+ roles[RunAdminRoleId] = &Role{
+ Name: RunAdminRoleId,
+ DisplayName: "authentication.roles.run_admin.name",
+ Description: "authentication.roles.run_admin.description",
+ Permissions: []string{
+ PermissionRunManageMembers.Id,
+ PermissionRunManageProperties.Id,
+ },
+ SchemeManaged: true,
+ BuiltIn: true,
+ }
+
+ roles[RunMemberRoleId] = &Role{
+ Name: RunMemberRoleId,
+ DisplayName: "authentication.roles.run_member.name",
+ Description: "authentication.roles.run_member.description",
+ Permissions: []string{
+ PermissionRunView.Id,
+ },
+ SchemeManaged: true,
+ BuiltIn: true,
+ }
+
roles[SystemGuestRoleId] = &Role{
Name: "system_guest",
DisplayName: "authentication.roles.global_guest.name",