diff options
author | Christopher Speller <crspeller@gmail.com> | 2015-09-30 15:38:15 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2015-09-30 15:38:15 -0400 |
commit | 2d3ddfd467036935bc983cd77b4ab1243ac58cb6 (patch) | |
tree | ed74e719e3d14857808a2dae5c5a08ebc35ed18d /api/file.go | |
parent | 46f86e7076a1dec6717a959299a08289a5cc54ac (diff) | |
parent | ad92a90b02fdcea3846376747cedf8c81e5a2d22 (diff) | |
download | chat-2d3ddfd467036935bc983cd77b4ab1243ac58cb6.tar.gz chat-2d3ddfd467036935bc983cd77b4ab1243ac58cb6.tar.bz2 chat-2d3ddfd467036935bc983cd77b4ab1243ac58cb6.zip |
Merge release branch 'release-1.0.0'
Diffstat (limited to 'api/file.go')
-rw-r--r-- | api/file.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/file.go b/api/file.go index be8fc5456..5dc1db650 100644 --- a/api/file.go +++ b/api/file.go @@ -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 |