diff options
Diffstat (limited to 'api4/role.go')
-rw-r--r-- | api4/role.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/api4/role.go b/api4/role.go index ac9364c35..e7654011d 100644 --- a/api4/role.go +++ b/api4/role.go @@ -7,7 +7,6 @@ import ( "net/http" "github.com/mattermost/mattermost-server/model" - "github.com/mattermost/mattermost-server/utils" ) func (api *API) InitRole() { @@ -86,7 +85,7 @@ func patchRole(c *Context, w http.ResponseWriter, r *http.Request) { return } - if !utils.IsLicensed() && patch.Permissions != nil { + if c.App.License() == nil && patch.Permissions != nil { allowedPermissions := []string{ model.PERMISSION_CREATE_TEAM.Id, model.PERMISSION_MANAGE_WEBHOOKS.Id, |