mirror of
https://github.com/opf/openproject.git
synced 2026-06-13 19:20:00 +00:00
fix: Real-time collaboration admin page: save button visible on read-only non-editable form (WP #69801)
This commit is contained in:
+1
-1
@@ -61,7 +61,7 @@
|
||||
placeholder: Setting.collaborative_editing_hocuspocus_secret.present? ? "••••••••••••••••" : nil
|
||||
)
|
||||
|
||||
form.submit
|
||||
form.submit unless none_writable_settings?
|
||||
end
|
||||
end
|
||||
else
|
||||
|
||||
+4
@@ -186,6 +186,10 @@ RSpec.describe "Document collaboration settings admin",
|
||||
with: "",
|
||||
disabled: true)
|
||||
end
|
||||
|
||||
it "does not show a save button" do
|
||||
expect(page).to have_no_button(I18n.t("button_save"))
|
||||
end
|
||||
end
|
||||
|
||||
context "with non-admin user" do
|
||||
|
||||
Reference in New Issue
Block a user