anchor.diff:                <a class="thumbnail" href=<%=@user.photo_four.url%> target="_blank">
                    <img src=<%=@user.photo_four.url%> class="img-responsive">
                 </a>
  -              <% if current_user == @user.id%>
  +              <% if current_user == @user %>
                   <%= form_for(@user, multipart: true) do |f| %>
                     <%= f.file_field :photo_four, style: "text-indent: 0px", required: true %><br>
                     <div class="form-group">
  
positive.code: <% if current_user.id != @user.id && !current_user.admin %>
      <script type="text/javascript">
        window.location.href="/";
      </script>
  
negative.code:                 <a class="thumbnail" href=<%=@user.photo_three.url%> target="_blank">
                     <img src=<%=@user.photo_three.url%> class="img-responsive">
                  </a>
                  <% if current_user == @user %>
                    <%= form_for(@user, multipart: true) do |f| %>
                      <%= f.file_field :photo_three, style: "text-indent: 0px", required: true %><br>
                        <div class="form-group">
  