mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-28 01:26:16 +01:00
Merge remote-tracking branch 'origin/develop' into activitypub
This commit is contained in:
@@ -172,9 +172,10 @@ helpers.getCustomUserFields = async function (callerUID, userData) {
|
||||
]);
|
||||
|
||||
const fields = allFields.filter((field) => {
|
||||
const visibilityCheck = isAdmin || isModOfAny || isSelf || field.visibility === 'all' ||
|
||||
const visibility = field.visibility || 'all';
|
||||
const visibilityCheck = isAdmin || isModOfAny || isSelf || visibility === 'all' ||
|
||||
(
|
||||
field.visibility === 'loggedin' &&
|
||||
visibility === 'loggedin' &&
|
||||
String(callerUID) !== '0' &&
|
||||
String(callerUID) !== '-1'
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user