feat: tags autocomplete in page properties

This commit is contained in:
NGPixel
2020-02-02 16:24:27 -05:00
parent a1e0e4f27a
commit f4e3fd0954
5 changed files with 80 additions and 7 deletions

View File

@@ -30,7 +30,6 @@ module.exports = {
if (opts.path) {
builder.andWhere('path', 'like', `${opts.path}%`)
}
// TODO: Add user permissions filtering
builder.andWhere(builderSub => {
if (WIKI.config.db.type === 'postgres') {
builderSub.where('title', 'ILIKE', `%${q}%`)