プロジェクト

全般

プロフィール

Vote #73102

完了

View group members by non-admin users

Admin Redmine さんが4年以上前に追加. 4年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Groups_27
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
27
version_id:
155
issue_org_id:
12795
author_id:
69861
assigned_to_id:
332
comments:
10
status_id:
5
tracker_id:
2
plus1:
1
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

There is currently no way for a user to find out who is a member of which groups. I would like this page (and the individual group pages) to be visible by non-admin users (although obviously not editable):
http://demo.redmine.org/groups

In conjunction with Feature Request #12794 (Member groups not listed in project page), here is how I would see it being used:
I open a new Bug Issue for a project and assign it to the group "Database-Developers". When nothing happens with the issue, I want to know who is in that group so that I can talk to them in person.


journals

--------------------------------------------------------------------------------
+1

The following code allows users to see group members according to "Users visibility" setting (#11724) of their role.

<pre><code class="diff">
diff --git a/app/controllers/groups_controller.rb b/app/controllers/groups_controller.rb
index fb21e2f05..68fa826c9 100644
--- a/app/controllers/groups_controller.rb
+++ b/app/controllers/groups_controller.rb
@@ -21,7 +21,7 @@ class GroupsController < ApplicationController
layout 'admin'
self.main_menu = false

- before_action :require_admin
+ before_action :require_admin, :except => [:show]
before_action :find_group, :except => [:index, :new, :create]
accept_api_auth :index, :show, :create, :update, :destroy, :add_users, :remove_user

@@ -50,6 +50,8 @@ class GroupsController < ApplicationController
end

def show
+ return render_404 unless @group.visible?
+
respond_to do |format|
format.html
format.api
</code></pre>
--------------------------------------------------------------------------------
The attached patches implement the feature.

* A user can see /groups/:id page that displays group members if the group is visible for the user. The visibility of the group follows "Users visibility" setting of roles
* Adds links from group names to /groups/:id page

!{border: 1px solid grey; width: 1024px}.link-from-group-name-to-group-page.png!

!{border: 1px solid grey; width: 424px}.group-page.png!
--------------------------------------------------------------------------------
Updated the patch. Make the page layout consistent with the user profile page.

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Setting the target version to 5.0.0.
--------------------------------------------------------------------------------
Committed the patch.

Non-admin users can see group members by clicking a group name on the project overview page.
--------------------------------------------------------------------------------
Go MAEDA wrote:
> Committed the patch.
>
> Non-admin users can see group members by clicking a group name on the project overview page.

Also, the assignee field now shows a link to the group page if the assignee is a group (r21075).
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------


related_issues

relates,Closed,12796,Display user's groups on profile
relates,Closed,12794,Member groups not listed in project page
relates,Closed,35823,undefined method `+' for nil:NilClass

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0