diff options
author | Luke Shumaker <shumakl@purdue.edu> | 2014-04-29 11:25:23 -0400 |
---|---|---|
committer | Luke Shumaker <shumakl@purdue.edu> | 2014-04-29 11:25:23 -0400 |
commit | 0d6f7a3bfbf4c87510a1bcf967b618f98e149d49 (patch) | |
tree | e3cd7d5329bd3c04a2fbfc766db34766fab12bc3 /app/controllers/users_controller.rb | |
parent | 8aefe73872571ac54738bde71d4da5611659a0cc (diff) |
clean up permission system
Diffstat (limited to 'app/controllers/users_controller.rb')
-rw-r--r-- | app/controllers/users_controller.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 767d992..e9efb36 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -93,10 +93,6 @@ class UsersController < ApplicationController @user = User.find(params[:id]) end - def is_owner?(object) - object == current_user - end - # Never trust parameters from the scary internet, only allow the white list through. def user_params permitted = [ :name, :email, :user_name, :password, :password_confirmation ] |