Commit 33e1f29ff2fd16cf2ece289b0d7448c3695ee0ba
1 parent
28539884
Exists in
master
and in
2 other branches
support profile user . Thanks @diguliu
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
header.html.erb
... | ... | @@ -123,7 +123,7 @@ |
123 | 123 | </div><!-- #header --> |
124 | 124 | </div><!-- .header-content --> |
125 | 125 | |
126 | -<% if logged_in? && profile && profile.admins.include?(user) %> | |
126 | +<% if logged_in? && profile && (profile == user || profile.admins.include?(user)) %> | |
127 | 127 | <div id="manage-admin" class="manage-groups"> |
128 | 128 | <a href="#" id="manage-admin-link" class="simplemenu-trigger" title="Manage admin"><strong><span class="ui-icon ui-icon-triangle-1-s " style="float:left; margin-right:7px;"></span><%= _('Administration') %></strong></a> |
129 | 129 | <ul class="simplemenu-submenu"> | ... | ... |