MM-15485: In-channel system behaviour for at-mentions and slash commands for group-constrained channels. (#10855)
* MM-15108: Prevent non-group-members from being added to group-constrained channels. * MM-15485: Updates ephemeral message when non-group member is invited to group-constrained channel. * MM-15485: Prevent group-permitted members from being removed from group-constrained channels. Show custom ephemeral when attempting /kick or /remove.
Этот коммит содержится в:
коммит произвёл
George Goldberg
родитель
6d2fa0f3d2
Коммит
8d8a4d8614
@@ -177,7 +177,7 @@ func channelGroupStatusCmdF(command *cobra.Command, args []string) error {
|
||||
return errors.New("Unable to find channel '" + args[0] + "'")
|
||||
}
|
||||
|
||||
if channel.GroupConstrained != nil && *channel.GroupConstrained {
|
||||
if channel.IsGroupConstrained() {
|
||||
fmt.Println("Enabled")
|
||||
} else {
|
||||
fmt.Println("Disabled")
|
||||
@@ -271,7 +271,7 @@ func teamGroupStatusCmdF(command *cobra.Command, args []string) error {
|
||||
return errors.New("Unable to find team '" + args[0] + "'")
|
||||
}
|
||||
|
||||
if team.GroupConstrained != nil && *team.GroupConstrained {
|
||||
if team.IsGroupConstrained() {
|
||||
fmt.Println("Enabled")
|
||||
} else {
|
||||
fmt.Println("Disabled")
|
||||
|
||||
Ссылка в новой задаче
Block a user