FUCK this!!!!!
This commit is contained in:
parent
b3f165b12b
commit
6d81b4a24b
|
@ -4,11 +4,9 @@ class ApplicationController < ActionController::Base
|
||||||
protect_from_forgery with: :exception
|
protect_from_forgery with: :exception
|
||||||
|
|
||||||
before_filter :configure_permitted_parameters, if: :devise_controller?
|
before_filter :configure_permitted_parameters, if: :devise_controller?
|
||||||
|
|
||||||
def privileged?(user)
|
include ApplicationHelper
|
||||||
(current_user && (current_user == user || current_user.admin?)) ? true : false
|
|
||||||
end
|
|
||||||
|
|
||||||
protected
|
protected
|
||||||
|
|
||||||
def configure_permitted_parameters
|
def configure_permitted_parameters
|
||||||
|
|
Loading…
Reference in New Issue