mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 16:09:52 +01:00
fixed delete button not showing up FOR REAL
This commit is contained in:
parent
dc83151e65
commit
9cc35f90f3
2 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@ class ApplicationController < ActionController::Base
|
|||
before_filter :configure_permitted_parameters, if: :devise_controller?
|
||||
|
||||
def privileged?(user)
|
||||
(current_user == user && current_user.admin?) ? true : false
|
||||
(current_user == user || current_user.admin?) ? true : false
|
||||
end
|
||||
|
||||
protected
|
||||
|
|
|
@ -47,6 +47,6 @@ module ApplicationHelper
|
|||
end
|
||||
|
||||
def privileged?(user)
|
||||
(current_user == user && current_user.admin?) ? true : false
|
||||
(current_user == user || current_user.admin?) ? true : false
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue