2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-07 12:02:53 +08:00

DEV: prevents staff computed property to be overridden (#7931)

This commit is contained in:
Joffrey JAFFEUX 2019-07-24 22:01:08 +02:00 committed by GitHub
parent cc46de8f46
commit c1d2fb115c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 47 additions and 42 deletions

View file

@ -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 });