MM-21882: Remove the license requirement to promote guests to regular users (#13790)

* MM-21882: Remove the license requirement to promote guests to regular users

* Removing unneded translation keys

Co-authored-by: mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
Jesús Espino
2020-02-06 15:55:38 +01:00
коммит произвёл GitHub
родитель 240e57d581
Коммит 560b4b7c7e
2 изменённых файлов: 0 добавлений и 18 удалений

Просмотреть файл

@@ -1966,16 +1966,6 @@ func promoteGuestToUser(c *Context, w http.ResponseWriter, r *http.Request) {
return
}
if c.App.License() == nil {
c.Err = model.NewAppError("Api4.promoteGuestToUser", "api.team.promote_guest_to_user.license.error", nil, "", http.StatusNotImplemented)
return
}
if !*c.App.Config().GuestAccountsSettings.Enable {
c.Err = model.NewAppError("Api4.promoteGuestToUser", "api.team.promote_guest_to_user.disabled.error", nil, "", http.StatusNotImplemented)
return
}
if !c.App.SessionHasPermissionTo(c.App.Session, model.PERMISSION_PROMOTE_GUEST) {
c.SetPermissionError(model.PERMISSION_PROMOTE_GUEST)
return

Просмотреть файл

@@ -2058,14 +2058,6 @@
"id": "api.team.move_channel.success",
"translation": "This channel has been moved to this team from %v."
},
{
"id": "api.team.promote_guest_to_user.disabled.error",
"translation": "Guest accounts are disabled."
},
{
"id": "api.team.promote_guest_to_user.license.error",
"translation": "Your license does not support guest accounts"
},
{
"id": "api.team.remove_member.group_constrained.app_error",
"translation": "Unable to remove a user from a group-constrained team."