MM-23876: Fix for patching channel moderations with a null team schem… (#14239)
* MM-23876: Fix for patching channel moderations with a null team scheme channel guest role. * MM-23876: Tests the moderations response.
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
27a0ff4d52
Коммит
f92d3fa518
@@ -204,6 +204,10 @@ func PermissionsChangedByPatch(role *Role, patch *RolePatch) []string {
|
||||
func ChannelModeratedPermissionsChangedByPatch(role *Role, patch *RolePatch) []string {
|
||||
var result []string
|
||||
|
||||
if role == nil {
|
||||
return result
|
||||
}
|
||||
|
||||
if patch.Permissions == nil {
|
||||
return result
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user