Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Commit

Permalink
if there is not recognized member then we don't have any mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
yeseniamolinab committed Apr 20, 2022
1 parent 3d149ee commit 8be4d08
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ def recognized_member
end

def id_mismatch
!@recognized_member.nil? && current_member != @recognized_member.id
return false if recognized_member.nil?

current_member != @recognized_member.id
end

def authenticate_super_admin!
Expand Down

0 comments on commit 8be4d08

Please sign in to comment.