\ No newline at end of file
diff --git a/app/views/admin/diplomas/index.html.erb b/app/views/admin/diplomas/index.html.erb
index a365c30..10c7d70 100644
--- a/app/views/admin/diplomas/index.html.erb
+++ b/app/views/admin/diplomas/index.html.erb
@@ -1,10 +1,11 @@
-
<%= t('date_') %>
+
<%= t('users.name') %>
+
<%= t('personal_diploma.duration') %>
<%= t('personal_diploma.school_name') %>
-
<%= t('personal_diploma.department') %>
-
<%= t('personal_diploma.degree') %>
+
<%= t('personal_diploma.department') %>
+
<%= t('personal_diploma.degree') %>
diff --git a/app/views/plugin/personal_diploma/_profile.html.erb b/app/views/plugin/personal_diploma/_profile.html.erb
index ef14752..6089f6e 100644
--- a/app/views/plugin/personal_diploma/_profile.html.erb
+++ b/app/views/plugin/personal_diploma/_profile.html.erb
@@ -6,15 +6,14 @@
<% end %>
<%
- is_autorized_user = (current_user==@member.user || current_user.is_admin?)
- if is_autorized_user
+ if has_access?
@diplomas = Diploma.where(member_profile_id: @member.id).desc(:year).page(params[:page]).per(10)
else
@diplomas = Diploma.where(is_hidden: false, member_profile_id: @member.id).desc(:year).page(params[:page]).per(10)
end
%>
-<% if is_autorized_user %>
+<% if has_access? %>