FIX: Use can_assign instead of staff to show the assign modal correctly

This commit is contained in:
romanrizzi 2019-08-04 18:30:28 -03:00
parent 9c72a2f5ca
commit 2d78151481
1 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ function registerTopicFooterButtons(api) {
return `discourse_assign.${hasAssignement ? "unassign" : "assign"}.title`; return `discourse_assign.${hasAssignement ? "unassign" : "assign"}.title`;
}, },
action() { action() {
if (!this.get("currentUser.staff")) { if (!this.get("currentUser.can_assign")) {
return; return;
} }
@ -47,7 +47,7 @@ function registerTopicFooterButtons(api) {
dependentKeys: [ dependentKeys: [
"topic.isPrivateMessage", "topic.isPrivateMessage",
"topic.assigned_to_user", "topic.assigned_to_user",
"currentUser.staff", "currentUser.can_assign",
"topic.assigned_to_user.username" "topic.assigned_to_user.username"
], ],
displayed() { displayed() {