Commit 2b336e038fc5673d89d948814077b67501e2eab0

Authored by Antonio Terceiro
2 parents a7f0469c 2b2a906c

Merge branch 'fix_block_environment' into 'master'

Fix block environment

When the owner of the block is Environment it breaks the edition of the block because of the show to followers new option.

See merge request !434
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  
... ...