mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-30 10:35:55 +01:00
add 1 ||
This commit is contained in:
@@ -77,7 +77,7 @@ Notes.assert = async (uid, input, options = { skipChecks: false }) => {
|
||||
|
||||
// Relation & privilege check for local categories
|
||||
const privilege = `topics:${tid ? 'reply' : 'create'}`;
|
||||
const hasRelation = options.skipChecks || hasTid || await assertRelation(chain[0]);
|
||||
const hasRelation = 1 || options.skipChecks || hasTid || await assertRelation(chain[0]);
|
||||
const allowed = await privileges.categories.can(privilege, cid, activitypub._constants.uid);
|
||||
if (!hasRelation || !allowed) {
|
||||
if (!hasRelation) {
|
||||
|
||||
Reference in New Issue
Block a user