mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-04 20:25:22 +08:00
Merge pull request #8811 from artoscinote/ma_SCI_12271
Fix group assignment url for non-manage roles on repository [SCI-12271]
This commit is contained in:
commit
4f5fe29d9f
1 changed files with 2 additions and 2 deletions
|
@ -58,7 +58,8 @@ module Lists
|
|||
show_access: access_permissions_repository_path(object),
|
||||
share: team_shared_objects_path(current_user.current_team, object_id: object.id, object_type: 'Repository'),
|
||||
user_roles: user_roles_access_permissions_repository_path(object),
|
||||
user_group_members: users_users_settings_team_user_groups_path(team_id: current_user.current_team_id)
|
||||
user_group_members: users_users_settings_team_user_groups_path(team_id: current_user.current_team_id),
|
||||
show_user_group_assignments_access: show_user_group_assignments_access_permissions_repository_path(object)
|
||||
}
|
||||
|
||||
urls[:show] = repository_path(object) if can_read?
|
||||
|
@ -68,7 +69,6 @@ module Lists
|
|||
urls[:new_access] = new_access_permissions_repository_path(id: object.id)
|
||||
urls[:create_access] = access_permissions_repositories_path(id: object.id)
|
||||
urls[:unassigned_user_groups] = unassigned_user_groups_access_permissions_repository_path(id: object.id)
|
||||
urls[:show_user_group_assignments_access] = show_user_group_assignments_access_permissions_repository_path(object)
|
||||
end
|
||||
|
||||
urls
|
||||
|
|
Loading…
Add table
Reference in a new issue