mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-06 03:46:39 +08:00
Fix task access modal for user role [SCI-7712] (#4817)
This commit is contained in:
parent
f5abf0d6b6
commit
4b3b88fad8
2 changed files with 2 additions and 2 deletions
|
@ -95,7 +95,7 @@ module Experiments
|
|||
private
|
||||
|
||||
def access_url(project, experiment, my_module)
|
||||
if can_manage_my_module?(@user, my_module)
|
||||
if can_manage_my_module_users?(@user, my_module)
|
||||
edit_access_permissions_project_experiment_my_module_path(project, experiment, my_module)
|
||||
else
|
||||
access_permissions_project_experiment_my_module_path(project, experiment, my_module)
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
</a>
|
||||
</li>
|
||||
<% end %>
|
||||
<% if can_manage_my_module?(my_module) %>
|
||||
<% if can_manage_my_module_users?(my_module) %>
|
||||
<% task_access_path = edit_access_permissions_project_experiment_my_module_path(my_module.experiment.project, my_module.experiment, my_module) %>
|
||||
<% else %>
|
||||
<% task_access_path = access_permissions_project_experiment_my_module_path(my_module.experiment.project, my_module.experiment, my_module) %>
|
||||
|
|
Loading…
Add table
Reference in a new issue