mconf / mconf-web

GNU Affero General Public License v3.0
123 stars 86 forks source link

Users that are members of a space should not appear when inviting people to join the space #731

Open mconf-daileon opened 8 years ago

mconf-daileon commented 8 years ago

Author Name: Leonardo Daronco (Leonardo Daronco) Original Redmine Issue: 1555, http://dev.mconf.org/redmine/issues/1555


When an admin goes to the form to invite people to join a space, the "users" input shows all the users available in the portal. It should restrict the list only to users that are not members of the space yet.

mconf-daileon commented 8 years ago

Original Redmine Comment Author Name: Leonardo Daronco (Leonardo Daronco) Original Date: 2016-04-08T15:56:45Z


An idea to implement this would be to first move the code responsible for the search (currently available for spaces and users) to common classes/modules that will be responsible for the search only. These classes should be generic and would be able to search any type of resource. By using parameters, the search for people to invite to a space could inform that it is searching for users and that it shouldn't include users that are already in the current space.