Rocket.Chat icon indicating copy to clipboard operation
Rocket.Chat copied to clipboard

With new combined list flex, create new footer button code should include create-p premission

Open danielbressan opened this issue 10 years ago • 2 comments

I don't think this has been found/updated yet from the lastest code on develop I could see.

The footer button "Create New", from the "More Channels...." select right now does only a select hasAtLeastOnePermission on create-c, but the button shows for create-c/create-p

Thus:

    'click footer .create': ->
        if RocketChat.authz.hasAtLeastOnePermission('create-c')
            SideNav.setFlex "createCombinedFlex"

Should be:

    'click footer .create': ->
        if RocketChat.authz.hasAtLeastOnePermission [ 'create-c', 'create-p']
            SideNav.setFlex "createCombinedFlex"

danielbressan avatar Oct 28 '16 17:10 danielbressan

@danielbressan Yes you are right, you want to do the pull request or want us to do it?

MartinSchoeler avatar Oct 31 '16 11:10 MartinSchoeler

@MartinSchoeler I don't have a clean checkout right now. If it's easy for you, feel free, otherwise I can do it a little later in the week. Thanks!

danielbressan avatar Oct 31 '16 14:10 danielbressan