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

Just admins can change a Default Channel to Private (the channel will be a non default channel) #6426

Merged
merged 2 commits into from
Mar 23, 2017

Conversation

ggazzo
Copy link
Member

@ggazzo ggazzo commented Mar 22, 2017

@RocketChat/core

closes #6403

For default channels,

  • If you are an admin you can change the type, but you need confirm that you will lost the "default"
  • If you are the owner a message appears asking you to talk if your admin

I changed this methods to
RocketChat.ChannelSettings.addOption
RocketChat.ChannelSettings.getOptions
now you can pass a filter, if you dont will return all options.

@ggazzo ggazzo requested a review from graywolf336 March 22, 2017 18:34
if err
return handleError(err)
toastr.success TAPi18n.__ 'Room_type_changed_successfully'
func = =>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you please rename the func variable to anything else that makes more sense?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@rodrigok
Copy link
Member

@sampaiodiego can you review again?

@engelgabriel engelgabriel modified the milestone: 0.55.0 Mar 23, 2017
@rodrigok rodrigok modified the milestone: 0.55.0 Mar 23, 2017
@rodrigok rodrigok merged commit 8a3d7ba into RocketChat:develop Mar 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

changing General Room to Private , doesnt stop new members from joining in
4 participants