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 class App.ControllerPermanent extends App.Controller
constructor: -> constructor: ->
super
# check authentication
if @requiredPermission if @requiredPermission
@permissionCheckRedirect(@requiredPermission, true) @permissionCheckRedirect(@requiredPermission, true)
super
$('.content').addClass('hide') $('.content').addClass('hide')
@navShow() @navShow()
class App.ControllerContent extends App.Controller class App.ControllerContent extends App.Controller
constructor: -> constructor: ->
super
# check authentication
if @requiredPermission if @requiredPermission
@permissionCheckRedirect(@requiredPermission) @permissionCheckRedirect(@requiredPermission)
super
$('.content').addClass('hide') $('.content').addClass('hide')
$('#content').removeClass('hide') $('#content').removeClass('hide')
@navShow() @navShow()