mirror of
https://github.com/discourse/discourse.git
synced 2025-05-26 10:52:05 +08:00
DEV: prevents staff computed property to be overridden (#7931)
This commit is contained in:
@ -537,7 +537,7 @@ QUnit.test(
|
||||
posts: [post, { id: 3 }, { id: 4 }]
|
||||
});
|
||||
|
||||
const currentUser = Ember.Object.create({ staff: true });
|
||||
const currentUser = Ember.Object.create({ moderator: true });
|
||||
const model = Topic.create({ postStream });
|
||||
const controller = this.subject({ model, currentUser });
|
||||
|
||||
|
Reference in New Issue
Block a user