-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] UI was not disabling the actions when users has had no permissi…
…ons 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
- Loading branch information
1 parent
9824687
commit 0f5cffa
Showing
9 changed files
with
99 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters