From fbdefa0bf3ae1e86b1326ffb0f12a32633aeb7b2 Mon Sep 17 00:00:00 2001 From: Jyoti Rawat Date: Sat, 9 Apr 2022 10:51:09 +0530 Subject: [PATCH] Update profile.html.erb --- app/views/users/profile.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/users/profile.html.erb b/app/views/users/profile.html.erb index 24d3777a84..f768621edb 100644 --- a/app/views/users/profile.html.erb +++ b/app/views/users/profile.html.erb @@ -45,13 +45,13 @@
- <%if @content_approved or (!current_user.nil? && current_user.id == @profile_user.id)%> + <%if @content_approved || (!current_user.nil? && current_user.id == @profile_user.id) || logged_in_as(['admin', 'moderator']) %> <%= image_tag(@profile_user.profile_image, class:'rounded-circle', id:'profile-photo', style:"width:50%;margin-bottom:10px;") %> <%end%>

@<%= @profile_user.name %> <%= @profile_user.new_contributor %>

- <%if @content_approved or (!current_user.nil? && current_user.id == @profile_user.id)%> + <%if @content_approved || (!current_user.nil? && current_user.id == @profile_user.id) || logged_in_as(['admin', 'moderator']) %> <%= image_tag(@profile_user.profile_image(:medium), class:'rounded-circle', id:'profile-photo', style:"width:50%;margin-bottom:20px;") %> <%end%>

@<%= @profile_user.name %> <%= @profile_user.new_contributor %>