mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-22 13:48:46 +00:00
Add leader check for challenge tasks on delete icon (#8325)
This commit is contained in:
parent
23c5c4211c
commit
e02ef00397
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@
|
|||
|
|
||||
|
||||
// delete
|
||||
a(ng-if='!task.challenge.id', ng-hide="(checkGroupAccess && !checkGroupAccess(obj))" ng-click='removeTask(task, obj)', tooltip=env.t('delete'))
|
||||
a(ng-if='!task.challenge.id || (obj.leader && obj.leader.id === user._id)', ng-hide="(checkGroupAccess && !checkGroupAccess(obj))" ng-click='removeTask(task, obj)', tooltip=env.t('delete'))
|
||||
span.glyphicon.glyphicon-trash
|
||||
|
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue