Skip to content
  • Gung Wah's avatar
    [CHORE] Add permissions to Redux (#2914) · e9811658
    Gung Wah authored
    
    
    * [FIX] Add permissions to Redux store
    
    * add only permissions being used in the app
    
    * add clear permissions reducer
    
    * call RocketChat.hasPermission from reducer
    
    * add server version comparison on getPermissions
    
    * refactor hasPermission function
    
    * refactor hasPermission function
    
    * remove uncomment code
    
    * use Q.experimentalSortBy()
    
    * add coerce function
    
    * Change Rocketchat.hasPermission
    
    * Apply on isReadOnly
    
    * Apply to RoomInfoEditView
    
    * Apply to RoomInfoView and RoomInfoEditView
    
    * canAutoTranslate
    
    * Unnecessary clear permissions
    
    * Revert getUpdatedSince
    
    * Naming fix
    
    Co-authored-by: default avatarDiego Mello <diegolmello@gmail.com>
    e9811658