vn-verdnaturachat/app/views/RoomsListView
Reinaldo Neto da6af286c6
[IMPROVE] Check permission to create a room (#3233)
* [IMPROVE] Check permission to create new message, channels, teams

* Show or not the button to create at RoomListView

* Check permission for each button inside NewMessageView

* Check permission to create private or public channel

* Minor tweak

* Refactor to create a function tuserHasRolePermission

* Refactor to use only one function at rocketchat to check the user permission

* Minor tweaks

* Reactive create channel

* reactive new message view, and handleHasPermission out of constructor

* handleHasPermission to didMount in roomListView

* remove console.log

* Call the function in componentDidMount

* Changed === to dequal, to check array

Co-authored-by: Gerzon Z <gerzonc@icloud.com>
Co-authored-by: Gerzon Z <gerzonzcanario@gmail.com>
Co-authored-by: AlexAlexandre <alexalexandrejr@gmail.com>
Co-authored-by: Diego Mello <diegolmello@gmail.com>
2021-10-05 10:59:40 -03:00
..
Header Chore: Start Typescript migration (#3279) 2021-09-13 17:41:05 -03:00
ListHeader Chore: Start Typescript migration (#3279) 2021-09-13 17:41:05 -03:00
SortDropdown Chore: Start Typescript migration (#3279) 2021-09-13 17:41:05 -03:00
ServerDropdown.js [IMPROVE] Onboarding changes (#3387) 2021-09-23 11:17:53 -03:00
index.js [IMPROVE] Check permission to create a room (#3233) 2021-10-05 10:59:40 -03:00
styles.js [IMPROVE] Onboarding changes (#3387) 2021-09-23 11:17:53 -03:00