Commit 2b2a906cabdcdc326ab8da98d980f47db0f243a8
1 parent
a7f0469c
Exists in
master
and in
29 other branches
When the block was from an environment it breaks the show to followers option
- add the checking to be sure that the owner of the block isn't Environment Signed-off-by: Gabriela Navarro <navarro1703@gmail.com> Signed-off-by: Luciano Prestes <lucianopcbr@gmail.com>
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/models/block.rb
... | ... | @@ -224,7 +224,7 @@ class Block < ActiveRecord::Base |
224 | 224 | 'all' => _('All users'), |
225 | 225 | 'logged' => _('Logged'), |
226 | 226 | 'not_logged' => _('Not logged'), |
227 | - 'followers' => owner.organization? ? _('Members') : _('Friends') | |
227 | + 'followers' => owner.class != Environment && owner.organization? ? _('Members') : _('Friends') | |
228 | 228 | } |
229 | 229 | end |
230 | 230 | ... | ... |