FUCK this!!!!!
This commit is contained in:
parent
b3f165b12b
commit
6d81b4a24b
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue