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

@ -4,11 +4,9 @@ class ApplicationController < ActionController::Base
protect_from_forgery with: :exception
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
def configure_permitted_parameters