mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 03:26:04 +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
|
// Relation & privilege check for local categories
|
||||||
const privilege = `topics:${tid ? 'reply' : 'create'}`;
|
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);
|
const allowed = await privileges.categories.can(privilege, cid, activitypub._constants.uid);
|
||||||
if (!hasRelation || !allowed) {
|
if (!hasRelation || !allowed) {
|
||||||
if (!hasRelation) {
|
if (!hasRelation) {
|
||||||
|
|||||||
Reference in New Issue
Block a user