Fixed typo in permission name.
This commit is contained in:
parent
8dcb17627c
commit
8894374afd
3 changed files with 2 additions and 3 deletions
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 = []
|
||||
|
|
Loading…
Reference in a new issue