Fixed typo in permission name.

This commit is contained in:
Martin Edenhofer 2017-10-13 08:22:37 +02:00
parent 8dcb17627c
commit 8894374afd
3 changed files with 2 additions and 3 deletions

View file

@ -363,7 +363,7 @@ class App.ChannelChat extends App.ControllerSubContent
@code.each (i, block) ->
hljs.highlightBlock block
App.Config.set('Chat', { prio: 4000, name: 'Chat', parent: '#channels', target: '#channels/chat', controller: App.ChannelChat, permission: ['admin.chat'] }, 'NavBarAdmin')
App.Config.set('Chat', { prio: 4000, name: 'Chat', parent: '#channels', target: '#channels/chat', controller: App.ChannelChat, permission: ['admin.channel_chat'] }, 'NavBarAdmin')
class Topics extends App.Controller
events:

View file

@ -38,7 +38,6 @@ class App.ChannelForm extends App.ControllerSubContent
value: group_id
#class: 'form-control--small'
)
console.log('s', element.find('.js-groupSelector'), selection)
element.find('.js-groupSelector').html(selection)
@html element

View file

@ -1,7 +1,7 @@
# Copyright (C) 2012-2016 Zammad Foundation, http://zammad-foundation.org/
class ChatsController < ApplicationController
prepend_before_action { authentication_check(permission: 'admin.chat') }
prepend_before_action { authentication_check(permission: 'admin.channel_chat') }
def index
chat_ids = []