```coffeescript
ETahi.AdminRoute = ETahi.AuthorizedRoute.extend
  actions:
    viewUserDetails: (user) ->
      @controllerFor('adminJournalUser').set('model', user)
      @render 'userDetailOverlay',
        into: 'application'
        outlet: 'overlay'
        controller: 'adminJournalUser'

    didTransition: ->
      $('html').attr('screen', 'admin')

    willTransition: ->
      $('html').attr('screen', '')
```

Add authorization check on admin route.
user
```coffeescript
ETahi.AdminRoute = ETahi.AuthorizedRoute.extend
  beforeModel: ->
    Ember.$.ajax '/admin/journals/authorization',
      headers:
        'Tahi-Authorization-Check': true

  actions:
    viewUserDetails: (user) ->
      @controllerFor('adminJournalUser').set('model', user)
      @render 'userDetailOverlay',
        into: 'application'
        outlet: 'overlay'
        controller: 'adminJournalUser'

    didTransition: ->
      $('html').attr('screen', 'admin')

    willTransition: ->
      $('html').attr('screen', '')
```
assistant