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
19 changed files with 47 additions and 42 deletions

View File

@ -579,7 +579,7 @@ widgetTest("toggle moderator post", {
template:
'{{mount-widget widget="post" args=args togglePostType=(action "togglePostType")}}',
beforeEach() {
this.currentUser.set("staff", true);
this.currentUser.set("moderator", true);
this.set("args", { canManage: true });
this.on("togglePostType", () => (this.toggled = true));
},
@ -595,7 +595,7 @@ widgetTest("toggle moderator post", {
template:
'{{mount-widget widget="post" args=args togglePostType=(action "togglePostType")}}',
beforeEach() {
this.currentUser.set("staff", true);
this.currentUser.set("moderator", true);
this.set("args", { canManage: true });
this.on("togglePostType", () => (this.toggled = true));
},