Translations: English
Search on Docs:
   
ActionItem Search:

#2549: Stoa invite filter only works for person

Type: BugItem Feature:   Tags: stoa
ScheduledFor: 0.39.3 Assigned to: RodrigoSouto Sites:  
Priority: 5 Status: Done  

Description of the bug

The problem is here:

# plugins/stoa/lib/stoa_plugin.rb

def invite_controller_filters
  [{ :type => 'before_filter',
    :method_name => 'check_usp_id_existence',
    :block => lambda {render_access_denied if profile.usp_id.blank?} }]
end

Instead of profile, it should test the logged user.

Steps to reproduce

  1. Enable StoaPlugin
  2. Try to invite someone to a community or and enterprise

Testing environment

social.stoa.usp.br

-- RodrigoSouto -- 16 Jan 2013

E também poderia testar se o usuário logado é um administrador do Environment inteiro: existem contas sem número USP configurado para ser admin. Talvez faz sentido permitir estas contas convidar também (importante no caso de ajuda na gestão de usuários).

-- EwoutTerHaar - 17 Jan 2013
Add comment
You need to login to be able to comment.
 

ActionItemForm edit

Title Stoa invite filter only works for person
ActionItemType BugItem
Priority Medium
Tags stoa
Feature
Plugin StoaPlugin
ResponsibleDevelopers RodrigoSouto
ScheduledFor 0.39.3
AffectsVersion
Status Done
Ticket SAC:
Topic revision: r1 - 22 May 2015, UnknownUser

irc Talk with Devs Now!

Copyright © 2007-2019 by the Noosfero contributors
Colivre - Cooperativa de Tecnologias Livres