Fix: don't search channel library if rank < seeplaylist
This commit is contained in:
parent
bc3f20198c
commit
71114b0060
4 changed files with 23 additions and 3 deletions
|
|
@ -77,7 +77,8 @@ LibraryModule.prototype.handleSearchMedia = function (user, data) {
|
|||
});
|
||||
};
|
||||
|
||||
if (data.source === "yt" || !this.channel.is(Flags.C_REGISTERED)) {
|
||||
if (data.source === "yt" || !this.channel.is(Flags.C_REGISTERED) ||
|
||||
!this.channel.modules.permissions.canSeePlaylist(user)) {
|
||||
searchYT();
|
||||
} else {
|
||||
db.channels.searchLibrary(this.channel.name, query, function (err, res) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue