Commit 7a0aa76eabad2e77a99f46d884dddff92579d94a
Exists in
master
and in
29 other branches
Merge branch 'stable'
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
app/views/blocks/disabled_enterprise_message.rhtml
| 1 | <div id='enterprise-disabled'> | 1 | <div id='enterprise-disabled'> |
| 2 | <%= message %> | 2 | <%= message %> |
| 3 | - <% if profile.blocked? && user.is_admin?(profile.environment) %> | 3 | + <% if profile.blocked? && user && user.is_admin?(profile.environment) %> |
| 4 | <div class='unlock-button'> | 4 | <div class='unlock-button'> |
| 5 | <%= button :lock, _('Unblock'), {:controller => 'profile', :action => 'unblock'} %> | 5 | <%= button :lock, _('Unblock'), {:controller => 'profile', :action => 'unblock'} %> |
| 6 | </div> | 6 | </div> |
app/views/shared/_disabled_enterprise.rhtml
| 1 | <% if profile.enterprise? && !profile.enabled? && !profile.blocks.select {|b| b.class == DisabledEnterpriseMessageBlock}.any? %> | 1 | <% if profile.enterprise? && !profile.enabled? && !profile.blocks.select {|b| b.class == DisabledEnterpriseMessageBlock}.any? %> |
| 2 | <div id='profile-disabled'> | 2 | <div id='profile-disabled'> |
| 3 | <%= environment.message_for_disabled_enterprise %> | 3 | <%= environment.message_for_disabled_enterprise %> |
| 4 | - <% if profile.blocked? && user.is_admin?(profile.environment) %> | 4 | + <% if profile.blocked? && user && user.is_admin?(profile.environment) %> |
| 5 | <div class='unlock-button'> | 5 | <div class='unlock-button'> |
| 6 | <%= button :lock, _('Unblock'), {:controller => 'profile', :action => 'unblock'} %> | 6 | <%= button :lock, _('Unblock'), {:controller => 'profile', :action => 'unblock'} %> |
| 7 | </div> | 7 | </div> |