Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MM-48541] Removing license restrictions #80

Merged
merged 3 commits into from
Nov 22, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ Visit the [MS Teams Meetings documentation](https://mattermost.gitbook.io/micros

## License

This repository is licensed under the [Mattermost Source Available License](LICENSE), and requires a valid Mattermost E20, Professional, or Enterprise license. See our [documentation](https://docs.mattermost.com/about/frequently-asked-questions.html#mattermost-source-available-license) to learn more. If you are contributing to the project, please enable [ServiceSettings.EnableDeveloper](https://docs.mattermost.com/configure/configuration-settings.html#enable-developer-mode) in your server's config. The plugin will not start and show an error message in your server logs, if you are the missing the Enterprise License.

This repository is licensed under the [Mattermost Source Available License](LICENSE).
javaguirre marked this conversation as resolved.
Show resolved Hide resolved

## Development

Expand Down
20 changes: 0 additions & 20 deletions server/license.go

This file was deleted.

6 changes: 0 additions & 6 deletions server/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ const (
botUserName = "mstmeetings"
botDisplayName = "MS Teams Meetings"
botDescription = "Created by the MS Teams Meetings plugin."

licenseErrorMessage = "The MS Teams Meetings plugin requires an E20, Professional, or Enterprise license."
)

// Plugin defines the plugin struct
Expand All @@ -46,10 +44,6 @@ type Plugin struct {
func (p *Plugin) OnActivate() error {
pluginAPIClient := pluginapi.NewClient(p.API)

if !HasEnterpriseFeatures(p.API.GetConfig(), p.API.GetLicense()) {
return errors.New(licenseErrorMessage)
}

config := p.getConfiguration()
if err := config.IsValid(); err != nil {
return err
Expand Down