This commit is contained in:
Martin Edenhofer 2016-08-31 20:44:51 +02:00
parent ad19a2e5e5
commit 63244c6c18

View file

@ -640,23 +640,21 @@ class App.Controller extends Spine.Controller
class App.ControllerPermanent extends App.Controller
constructor: ->
super
# check authentication
if @requiredPermission
@permissionCheckRedirect(@requiredPermission, true)
super
$('.content').addClass('hide')
@navShow()
class App.ControllerContent extends App.Controller
constructor: ->
super
# check authentication
if @requiredPermission
@permissionCheckRedirect(@requiredPermission)
super
$('.content').addClass('hide')
$('#content').removeClass('hide')
@navShow()