mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
remove use of soon-to-be-deprecated 'Discourse.SiteSettings' (cc @eviltrout)
This commit is contained in:
parent
485de2fcc3
commit
f943efe1a9
3 changed files with 8 additions and 6 deletions
|
@ -73,14 +73,12 @@ test("ensures an authorized upload", function() {
|
|||
test("staff can upload anything in PM", function() {
|
||||
const files = [{ name: "some.docx" }];
|
||||
Discourse.SiteSettings.authorized_extensions = "jpeg";
|
||||
Discourse.SiteSettings.allow_staff_to_upload_any_file_in_pm = true;
|
||||
|
||||
Discourse.User.resetCurrent(Discourse.User.create({ moderator: true }));
|
||||
|
||||
sandbox.stub(bootbox, "alert");
|
||||
|
||||
not(validUpload(files));
|
||||
ok(validUpload(files, { isPrivateMessage: true }));
|
||||
ok(validUpload(files, { isPrivateMessage: true, allowStaffToUploadAnyFileInPm: true }));
|
||||
});
|
||||
|
||||
var imageSize = 10 * 1024;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue