diff options
author | George Goldberg <george@gberg.me> | 2017-09-15 17:40:37 +0100 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2017-09-15 09:40:37 -0700 |
commit | fd878bd50c1c36f90962776ebb9626d016239540 (patch) | |
tree | 0d405f1351596e4318a083797210733bfdf39a73 /cmd/platform/channel.go | |
parent | 8195c80aa12136838ff4491fac989e0b946382b1 (diff) | |
download | chat-fd878bd50c1c36f90962776ebb9626d016239540.tar.gz chat-fd878bd50c1c36f90962776ebb9626d016239540.tar.bz2 chat-fd878bd50c1c36f90962776ebb9626d016239540.zip |
PLT-7539: Remove redundant license checks from CLI commands. (#7451)
Diffstat (limited to 'cmd/platform/channel.go')
-rw-r--r-- | cmd/platform/channel.go | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/cmd/platform/channel.go b/cmd/platform/channel.go index 8f8e8e194..b1fededb6 100644 --- a/cmd/platform/channel.go +++ b/cmd/platform/channel.go @@ -8,7 +8,6 @@ import ( "github.com/mattermost/mattermost-server/app" "github.com/mattermost/mattermost-server/model" - "github.com/mattermost/mattermost-server/utils" "github.com/spf13/cobra" ) @@ -131,10 +130,6 @@ func createChannelCmdF(cmd *cobra.Command, args []string) error { return err } - if !utils.IsLicensed() { - return errors.New(utils.T("cli.license.critical")) - } - name, errn := cmd.Flags().GetString("name") if errn != nil || name == "" { return errors.New("Name is required") @@ -184,10 +179,6 @@ func removeChannelUsersCmdF(cmd *cobra.Command, args []string) error { return err } - if !utils.IsLicensed() { - return errors.New(utils.T("cli.license.critical")) - } - if len(args) < 2 { return errors.New("Not enough arguments.") } @@ -221,10 +212,6 @@ func addChannelUsersCmdF(cmd *cobra.Command, args []string) error { return err } - if !utils.IsLicensed() { - return errors.New(utils.T("cli.license.critical")) - } - if len(args) < 2 { return errors.New("Not enough arguments.") } @@ -389,10 +376,6 @@ func listChannelsCmdF(cmd *cobra.Command, args []string) error { return err } - if !utils.IsLicensed() { - return errors.New(utils.T("cli.license.critical")) - } - if len(args) < 1 { return errors.New("Enter at least one team.") } @@ -427,10 +410,6 @@ func restoreChannelsCmdF(cmd *cobra.Command, args []string) error { return err } - if !utils.IsLicensed() { - return errors.New(utils.T("cli.license.critical")) - } - if len(args) < 1 { return errors.New("Enter at least one channel.") } @@ -455,10 +434,6 @@ func modifyChannelCmdF(cmd *cobra.Command, args []string) error { return err } - if !utils.IsLicensed() { - return errors.New(utils.T("cli.license.critical")) - } - if len(args) != 1 { return errors.New("Enter at one channel to modify.") } |