mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-11 15:45:34 +08:00
Merge pull request #8843 from andrej-scinote/aj_SCI_12303
Fix manage users on experiment and task [SCI-12303]
This commit is contained in:
commit
f7841d232a
2 changed files with 2 additions and 6 deletions
|
@ -82,9 +82,7 @@ module Lists
|
|||
user_group_members: users_users_settings_team_user_groups_path(team_id: object.team.id)
|
||||
}
|
||||
|
||||
if can_manage_project_users?(object.project)
|
||||
urls_list[:update_access] = access_permissions_experiment_path(object)
|
||||
end
|
||||
urls_list[:update_access] = access_permissions_experiment_path(object) if can_manage_experiment_users?(object)
|
||||
urls_list
|
||||
end
|
||||
|
||||
|
|
|
@ -72,9 +72,7 @@ module Lists
|
|||
user_group_members: users_users_settings_team_user_groups_path(team_id: object.team.id)
|
||||
}
|
||||
|
||||
if can_manage_project_users?(object.experiment.project)
|
||||
urls_list[:update_access] = access_permissions_my_module_path(object)
|
||||
end
|
||||
urls_list[:update_access] = access_permissions_my_module_path(object) if can_manage_my_module_users?(object)
|
||||
|
||||
urls_list[:update_due_date] = my_module_path(object, user, format: :json) if can_update_my_module_due_date?(object)
|
||||
urls_list[:update_start_date] = my_module_path(object, user, format: :json) if can_update_my_module_start_date?(object)
|
||||
|
|
Loading…
Add table
Reference in a new issue