I think there was a subtle bug in the intentional security bypass within the admin controller
This commit is contained in:
@@ -48,7 +48,7 @@ class AdminController < ApplicationController
|
||||
private
|
||||
|
||||
def admin_param
|
||||
params[:id] == '1'
|
||||
params[:admin_id] != '1'
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user