Commit 481d59ae4afbeac779b977480c531d60a1f4ce28

Authored by Thiago Ribeiro
2 parents 6a02343a 4cbc016a

Merge branch 'pkg_fixes' into 'master'

Pkg fixes

See merge request !8
Showing 1 changed file with 10 additions and 10 deletions   Show diff stats
lib/gov_user_plugin.rb
... ... @@ -236,17 +236,17 @@ class GovUserPlugin < 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
... ...