[FIX] UI was not disabling the actions when users has had no permissions to...
[FIX] UI was not disabling the actions when users has had no permissions to create channels or add users to rooms (#10564) * hide plus icon when user doesn't have both permission for create-c and create-p * add helper to checkout two permissions set initial value for the room type * hide the plus icon in directory if user doesn't have both create-c and creat-p permissions * get permissions for create channels and groups * check if user can add channel hide and groups, hide button based upon correct state * prevent add user button from being hidden when user has permission add user to joined room * removed the if statement and use short hand if else syntax * better code for disabling checkbox in create room feature if user doesn't have permission * add missing simicolon * put canShowAddUsersButton into seperate function call function in events and helpers * move the canShowAddUsersButton function to define before it's called * fix bug that prevents the viewing of the keyboard shortcuts button in groups and direct messages * fix permissions
Showing
- packages/rocketchat-lib/client/defaultTabBars.js 1 addition, 1 deletionpackages/rocketchat-lib/client/defaultTabBars.js
- packages/rocketchat-ui-flextab/client/flexTabBar.html 1 addition, 1 deletionpackages/rocketchat-ui-flextab/client/flexTabBar.html
- packages/rocketchat-ui-flextab/client/flexTabBar.js 44 additions, 37 deletionspackages/rocketchat-ui-flextab/client/flexTabBar.js
- packages/rocketchat-ui/client/views/app/createChannel.html 3 additions, 3 deletionspackages/rocketchat-ui/client/views/app/createChannel.html
- packages/rocketchat-ui/client/views/app/createChannel.js 7 additions, 1 deletionpackages/rocketchat-ui/client/views/app/createChannel.js
- packages/rocketchat-ui/client/views/app/directory.html 3 additions, 1 deletionpackages/rocketchat-ui/client/views/app/directory.html
- packages/rocketchat-ui/client/views/app/directory.js 3 additions, 0 deletionspackages/rocketchat-ui/client/views/app/directory.js
- tests/end-to-end/ui/04-main-elements-render.js 33 additions, 0 deletionstests/end-to-end/ui/04-main-elements-render.js
- tests/pageobjects/flex-tab.page.js 4 additions, 4 deletionstests/pageobjects/flex-tab.page.js
Please register or sign in to comment