mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-02-28 01:00:59 +01:00
fix(forums): fixed normal user to delete own topic or reply in forum
This commit is contained in:
@@ -125,7 +125,7 @@
|
||||
*/
|
||||
vm.isOwner = function (o) {
|
||||
if (o) {
|
||||
if (o.user._id.str === vm.user._id) {
|
||||
if (o.user._id === vm.user._id) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user