mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-10 05:46:47 +08:00
Fix loading of protocols.io to protocol templates [SCI-8111]
This commit is contained in:
parent
0a3efe3e24
commit
b5c3491a38
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@
|
||||||
<%= label_tag :default_public_user_role_id, t("protocols.new_protocol_modal.role_label") %>
|
<%= label_tag :default_public_user_role_id, t("protocols.new_protocol_modal.role_label") %>
|
||||||
<% default_role = UserRole.find_by(name: I18n.t('user_roles.predefined.viewer')).id %>
|
<% default_role = UserRole.find_by(name: I18n.t('user_roles.predefined.viewer')).id %>
|
||||||
<%= hidden_field_tag :default_public_user_role_id, value: default_role %>
|
<%= hidden_field_tag :default_public_user_role_id, value: default_role %>
|
||||||
<%= select_tag :role_selector, options_for_select(user_roles_collection, default_role) %>
|
<%= select_tag :role_selector, options_for_select(user_roles_collection(@protocol), default_role) %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Reference in a new issue