mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-07-06 23:18:03 +02:00
opt(users): admin can create maker for user if him already join other maker group
This commit is contained in:
@@ -183,6 +183,25 @@
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* alreadyIsFounder
|
||||
* @param u
|
||||
* @returns {boolean}
|
||||
*/
|
||||
vm.alreadyIsFounder = function (u) {
|
||||
var is = false;
|
||||
|
||||
if (u.makers.length > 0) {
|
||||
angular.forEach(u.makers, function (m) {
|
||||
if (m.user === u._id) {
|
||||
is = true;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
return is;
|
||||
};
|
||||
|
||||
/**
|
||||
* showMakerGroup
|
||||
* @param evt
|
||||
|
||||
Reference in New Issue
Block a user