FUCK this!!!!!

This commit is contained in:
nilsding 2014-12-28 21:14:10 +01:00
parent b3f165b12b
commit 6d81b4a24b
1 changed files with 3 additions and 5 deletions

View File

@ -5,9 +5,7 @@ class ApplicationController < ActionController::Base
before_filter :configure_permitted_parameters, if: :devise_controller?
def privileged?(user)
(current_user && (current_user == user || current_user.admin?)) ? true : false
end
include ApplicationHelper
protected