Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
redmine_v2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
VeNtura
redmine_v2
Commits
01ef1b86
Commit
01ef1b86
authored
Nov 14, 2023
by
Tấn Trần Thanh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix comment
parent
45a5d5c6
Pipeline
#1584
canceled with stages
in 0 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
plugins/workflow_report/app/controllers/workflow_report_controller.rb
+2
-2
No files found.
plugins/workflow_report/app/controllers/workflow_report_controller.rb
View file @
01ef1b86
...
...
@@ -19,8 +19,8 @@ class WorkflowReportController < ApplicationController
leader_ids
=
User
.
all
.
where
(
admin:
1
).
pluck
(
:id
)
result
=
[]
users_by_role
.
each
{
|
key
,
_value
|
users_by_role
.
delete
(
key
)
if
key
.
is_a?
(
Role
)
&&
key
.
name
.
in?
(
%w[Manager JP TeamLead]
)
}
users_by_role
.
keys
.
each
do
|
role
|
users
_by_role
[
role
]
.
each
do
|
u
|
users_by_role
.
each
do
|
_role
,
users
|
users
.
each
do
|
u
|
result
<<
{
id:
u
.
id
,
fullname:
"
#{
u
.
firstname
}
#{
u
.
lastname
}
"
}
unless
leader_ids
.
include?
(
u
.
id
)
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment