mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 08:41:11 +08:00
remove use of soon-to-be-deprecated 'Discourse.SiteSettings' (cc @eviltrout)
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user