hunk.code_window: 		return
   	}
   	if (c.App.License() == nil || !*c.App.License().Features.GuestAccounts) && patch.Permissions != nil {
   		if oldRole.Name == "system_guest" || oldRole.Name == "team_guest" || oldRole.Name == "channel_guest" {
   			c.Err = model.NewAppError("Api4.PatchRoles", "api.roles.patch_roles.license.error", nil, "", http.StatusNotImplemented)
   			return
   		}
  
hunk.labels: keep keep keep replace keep keep keep keep
hunk.after_edit: 	if c.App.License() == nil && patch.Permissions != nil {
  
hunk.file_path: api4/role.go
hunk.type: replace
file: language: go
  go_import_path: github.com/pkg/errors
  go:
    - 1.4.x
    - 1.5.x
    - 1.6.x
    - 1.7.x
    - 1.8.x
    - 1.9.x
    - 1.10.x
    - 1.11.x
    - tip
  
  script:
    - go test -v ./...
  