Skip to content
Snippets Groups Projects
  • Charles Williams's avatar
    0f5cffa3
    [FIX] UI was not disabling the actions when users has had no permissions to... · 0f5cffa3
    Charles Williams authored
    [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
    0f5cffa3
    History
    [FIX] UI was not disabling the actions when users has had no permissions to...
    Charles Williams authored
    [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