mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 18:41:07 +08:00
DEV: prevents staff computed property to be overridden (#7931)
This commit is contained in:
@ -54,7 +54,7 @@ QUnit.test("updateFromPost", assert => {
|
||||
});
|
||||
|
||||
QUnit.test("destroy by staff", assert => {
|
||||
var user = Discourse.User.create({ username: "staff", staff: true }),
|
||||
var user = Discourse.User.create({ username: "staff", moderator: true }),
|
||||
post = buildPost({ user: user });
|
||||
|
||||
post.destroy(user);
|
||||
|
Reference in New Issue
Block a user