mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: Add attribution to staff notice and rename functionality (#30920)
The name "Staff Notice" was not quite right since TL4 users can also add these notices. This commit changes the wording to "Official Notice". In addition to this, currently you have to go look into the staff action logs to see who is responsible for a notice. This commit stores the ID of the user who created the notice, then shows this information on each notice to staff users. Finally, I migrated the ChangePostNoticeModal component to gjs.
This commit is contained in:
@@ -108,7 +108,7 @@ describe "Post menu", type: :system do
|
||||
expect(topic_page).to have_post_action_button(post2, :admin)
|
||||
end
|
||||
|
||||
it "displays the admin button when the user can wiki the post / edit staff notices" do
|
||||
it "displays the admin button when the user can wiki the post / edit official notices" do
|
||||
# display the admin button when the user can wiki
|
||||
sign_in(Fabricate(:trust_level_4))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user