Skip to content

Commit

Permalink
Fix track deletion by room owners.
Browse files Browse the repository at this point in the history
  • Loading branch information
martindale committed Sep 17, 2015
1 parent 976e0a6 commit 7fa4ef2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/index.jade
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ block content
span.pull-right {{track.duration | toHHMMSS }}
a(href="{{track.curator.slug}}") {{track.curator.username}}
| wants to play
if (user && room._owner && (user._id.toString() === room._owner.toString() || ~user.roles.indexOf('admin') ))
if (user && room._owner && (user._id.toString() === room._owner._id.toString()) || ~user.roles.indexOf('admin'))
|
a(href="#", data-action="remove-queued-track", data-track-id="{{track._id}}", data-track-index="{{$index}}")
i.icon-remove.icon-white
Expand Down

0 comments on commit 7fa4ef2

Please sign in to comment.