From 7d31f3a271d933b8c276602d9fb77fd5d22055de Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Wed, 30 Sep 2015 11:30:11 -0400 Subject: Fixing some locations to use the IsTeamAdmin function which properly checks for system admin permissions. --- api/file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'api/file.go') diff --git a/api/file.go b/api/file.go index 1cb05e81b..5ed422811 100644 --- a/api/file.go +++ b/api/file.go @@ -507,7 +507,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 -- cgit v1.2.3-1-g7c22