FIX: Use can_assign instead of staff to show the assign modal correctly
This commit is contained in:
parent
9c72a2f5ca
commit
2d78151481
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue