Merge release branch 'release-1.0.0'

Этот коммит содержится в:
Christopher Speller
2015-09-30 15:38:15 -04:00
родитель 46f86e7076 ad92a90b02
Коммит 2d3ddfd467
14 изменённых файлов: 178 добавлений и 40 удалений

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

@@ -488,7 +488,7 @@ func getPublicLink(c *Context, w http.ResponseWriter, r *http.Request) {
}
func getExport(c *Context, w http.ResponseWriter, r *http.Request) {
if !c.HasPermissionsToTeam(c.Session.TeamId, "export") || !c.IsTeamAdmin(c.Session.UserId) {
if !c.HasPermissionsToTeam(c.Session.TeamId, "export") || !c.IsTeamAdmin() {
c.Err = model.NewAppError("getExport", "Only a team admin can retrieve exported data.", "userId="+c.Session.UserId)
c.Err.StatusCode = http.StatusForbidden
return