mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 01:56:58 +08:00
remove use of soon-to-be-deprecated 'Discourse.SiteSettings' (cc @eviltrout)
This commit is contained in:
@ -185,8 +185,8 @@ export function validateUploadedFile(file, opts) {
|
||||
if (!name) { return false; }
|
||||
|
||||
// check that the uploaded file is authorized
|
||||
if (Discourse.SiteSettings.allow_staff_to_upload_any_file_in_pm) {
|
||||
if (opts["isPrivateMessage"] && Discourse.User.current("staff")) {
|
||||
if (opts["allowStaffToUploadAnyFileInPm"] && opts["isPrivateMessage"]) {
|
||||
if (Discourse.User.current("staff")) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user