Skip to content
Snippets Groups Projects
Commit 8e5b84bd authored by Karl Prieb's avatar Karl Prieb
Browse files

remove "Private" button for direct messages

parent 827731f9
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,11 @@ Template.channelSettings.helpers
return arr
valueOf: (obj, key) ->
if key is 't'
if obj[key] is 'c'
return false
return true
return obj?[key]
showSetting: (setting, room) ->
......@@ -156,7 +161,7 @@ Template.channelSettings.onCreated ->
isToggle: true
processing: new ReactiveVar(false)
canView: (room) ->
if not room.t in ['c', 'p']
if room.t not in ['c', 'p']
return false
else if room.t is 'p' and not RocketChat.authz.hasAllPermission('create-c')
return false
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment