 pwguardApp.controller 'AdminUsersCtrl', ['$scope',
                                          'pwgAjax',
                                          'pwgFlash',
+                                         'pwgModal',
                                          AdminUsersCtrl]

      pwgFlash.error "You can't delete yourself!"

    else
      $scope.confirm("Really delete #{u.email}?", "Confirm deletion").then (result) ->
        url = routes.controllers.UserController.delete(u.id).url
        pwgAjax.delete url, ->
          loadUsers()

                                     'pwgAjax',
                                     'pwgFlash',
                                     'pwgTimeout',
                                     'pwgModal',
                                     SearchCtrl]

# ---------------------------------------------------------------------------
