                                      'pwgAjax',
                                      'pwgFlash',
                                      'pwgTimeout',
+                                     'pwgModal',
                                      SearchCtrl]
 
 # ---------------------------------------------------------------------------

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

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

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