diff options
author | Azul <azul@leap.se> | 2012-11-26 14:32:50 +0100 |
---|---|---|
committer | Azul <azul@leap.se> | 2012-11-26 14:32:50 +0100 |
commit | bf74255d1530fe5852dc6e6c27ef975ce9aa8d3c (patch) | |
tree | 1a46627f7376dc038fb025981cc9b96236c43908 /users/app/controllers/users_controller.rb | |
parent | 1ea7da1314a46a87512e4f3d7f99249883f4f12f (diff) |
added admin menu and user index action
Diffstat (limited to 'users/app/controllers/users_controller.rb')
-rw-r--r-- | users/app/controllers/users_controller.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/users/app/controllers/users_controller.rb b/users/app/controllers/users_controller.rb index 5be1fa9..4912ac8 100644 --- a/users/app/controllers/users_controller.rb +++ b/users/app/controllers/users_controller.rb @@ -3,9 +3,14 @@ class UsersController < ApplicationController skip_before_filter :verify_authenticity_token, :only => [:create] before_filter :fetch_user, :only => [:edit, :update] + before_filter :authorize_admin, :only => [:index] respond_to :json, :html + def index + @users = User.all + end + def new @user = User.new end |