Renaming ROLE_ADMIN to ROLE_TEAM_ADMIN

Этот коммит содержится в:
=Corey Hulen
2015-09-11 09:39:28 -07:00
родитель 9a9f2808d6
Коммит e5e88d1604
7 изменённых файлов: 18 добавлений и 18 удалений

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

@@ -716,7 +716,7 @@ func deletePost(c *Context, w http.ResponseWriter, r *http.Request) {
return
}
if post.UserId != c.Session.UserId && !model.IsInRole(c.Session.Roles, model.ROLE_ADMIN) {
if post.UserId != c.Session.UserId && !model.IsInRole(c.Session.Roles, model.ROLE_TEAM_ADMIN) {
c.Err = model.NewAppError("deletePost", "You do not have the appropriate permissions", "")
c.Err.StatusCode = http.StatusForbidden
return