Project

General

Profile

restricting list of users when "search for watchers to add"

Added by Allen Myers about 11 years ago

[fyi: i posted this on 'Help' and then on 'Development', then finally
saw the guidelines for the usage of each forum, and apparently
I should have posted this here. Sorry for the spam!]

Hi,

I'm creating several private projects. When creating a new issue
under a private project, I would like to restrict the list
of users that is displayed when clicking "Search for watchers to add"
to just the users who are members of that private project. I'm
running 2.2.0.stable. Is there a plugin that can help with that?
Or, is it easy to modify the code to add an option when creating
a new project to limit the user list that is displayed?

Thanks!

- Allen


Replies (6)

RE: restricting list of users when "search for watchers to add" - Added by Lorand David about 11 years ago

Hey, have you found a way to do this ? thanks.

RE: restricting list of users when "search for watchers to add" - Added by Mischa The Evil about 11 years ago

This is not covered yet. I know there is an issue about this. Just can find it at the moment Some more diggin' resulted in #11724.

RE: restricting list of users when "search for watchers to add" - Added by Lorand David about 11 years ago

Thanks for the reply. I've removed that by adding:

 $('.search_for_watchers').remove();

in the application.js in hideOnLoad() function...

This will remove the element. The functionality is there and can be triggered with javascript, but I think if the users don't know about this and don't see this option in they won't access it. For me it is better to remove than to show other customers watchers.

Cheers.

RE: restricting list of users when "search for watchers to add" - Added by Mateusz Dobrowolny over 10 years ago

We can set privilege for viewing watcher list, adding and removing watchers.

But it would be really nice to make the projects separate. I think this should be property of the project:
allow watchers from:
- only this project
- subprojects
- project tree
- all projects

The same way as versions are shared:
http://www.redmine.org/projects/redmine/wiki/RedmineProjectSettings#Versions

Thanks!

RE: restricting list of users when "search for watchers to add" - Added by Pan Tau almost 10 years ago

I removed the "User Search" only for adding watchers.(Redmine 2.3.1)

I changed the following file:
redmine-2.3.1\app\views\watchers\_new.html.erb

The following line from

  <p><%= label_tag 'user_search', l(:label_user_search) %><%= text_field_tag 'user_search', nil %></p>

to
  <p><!--%= label_tag 'user_search', l(:label_user_search) %><%= text_field_tag 'user_search', nil %></p-->

I don't know if it is the right way,
but it works for me.

RE: restricting list of users when "search for watchers to add" - Added by Pan Tau almost 10 years ago

To remove the "User Search" form the "New Ticket Page"
you have to edit the application.css by adding the following line:

span.search_for_watchers {display:none}
    (1-6/6)