Commit 4cbc016a47509a503740734a834cecb65dfb4394

Authored by Tallys Martins
1 parent 6a02343a

Fix Hotspot method missing error

Signed-off-by: Tallys Martins <tallysmartins@yahoo.com.br>
Showing 1 changed file with 10 additions and 10 deletions   Show diff stats
lib/gov_user_plugin.rb
... ... @@ -236,17 +236,17 @@ class GovUserPlugin &lt; Noosfero::Plugin
236 236 end
237 237  
238 238 def organization_ratings_plugin_extra_fields_show_data user_rating
239   - if logged_in?
240   - is_admin = environment.admins.include?(current_user.person)
241   - is_admin ||= user_rating.organization.admins.include?(current_user.person)
242   -
243   - if is_admin and context.profile.software?
244   - Proc::new {
245   - render :file => 'organization_ratings_extra_fields_show_institution',
246   - :locals => {:user_rating => user_rating}
247   - }
  239 + Proc::new {
  240 + if logged_in?
  241 + is_admin = environment.admins.include?(current_user.person)
  242 + is_admin ||= user_rating.organization.admins.include?(current_user.person)
  243 +
  244 + if is_admin and context.profile.software?
  245 + render :file => 'organization_ratings_extra_fields_show_institution',
  246 + :locals => {:user_rating => user_rating}
  247 + end
248 248 end
249   - end
  249 + }
250 250 end
251 251  
252 252 private
... ...