From e9c9688b343049c6d461260bd15fff3486238f92 Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Mon, 23 Jan 2017 08:12:05 -0500 Subject: Move permissions code into app package (#5146) * Move permissions code into app package * Revert getPosts permission --- api/license.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'api/license.go') diff --git a/api/license.go b/api/license.go index 8a6ee7385..41cba914d 100644 --- a/api/license.go +++ b/api/license.go @@ -174,8 +174,7 @@ func RemoveLicense() *model.AppError { } func getClientLicenceConfig(c *Context, w http.ResponseWriter, r *http.Request) { - useSanitizedLicense := !HasPermissionToContext(c, model.PERMISSION_MANAGE_SYSTEM) - c.Err = nil + useSanitizedLicense := !app.SessionHasPermissionTo(c.Session, model.PERMISSION_MANAGE_SYSTEM) etag := utils.GetClientLicenseEtag(useSanitizedLicense) if HandleEtag(etag, "Get Client License Config", w, r) { -- cgit v1.2.3-1-g7c22