Test 4.
This commit is contained in:
parent
ad19a2e5e5
commit
63244c6c18
1 changed files with 4 additions and 6 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue