mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-09 06:35:37 +08:00
Fix designated user task on task canvas [SCI-8278] (#5279)
This commit is contained in:
parent
9526251bb0
commit
b631839f6c
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ module UserAssignmentsHelper
|
|||
|
||||
return '' if [Project, Protocol].include?(resource.class) && inherit.blank?
|
||||
|
||||
if user_assignment.automatically_assigned?
|
||||
if user_assignment.automatically_assigned? && resource.permission_parent.present?
|
||||
parent = resource.permission_parent
|
||||
return user_assignment_resource_role_name(user, parent, '_inherit')
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue