safe_join instead of html_safe
This commit is contained in:
parent
8b6bce5626
commit
7c8e70c30e
@ -22,13 +22,13 @@
|
||||
# Folders permissions helper
|
||||
module DmsfFolderPermissionsHelper
|
||||
def users_checkboxes(users, inherited: false)
|
||||
s = +''
|
||||
s = []
|
||||
id = inherited ? 'inherited_permissions[user_ids][]' : 'permissions[user_ids][]'
|
||||
users.each do |user|
|
||||
content = check_box_tag(id, user.id, true, disabled: inherited, id: nil) + user.name
|
||||
s << content_tag(:label, content, id: "user_permission_ids_#{user.id}", class: 'inline')
|
||||
end
|
||||
s
|
||||
safe_join s
|
||||
end
|
||||
|
||||
def render_principals_for_new_folder_permissions(users)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user