mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-28 17:46:16 +01:00
Added user consent pages (#6430)
- "Your Rights & Consent" user settings page
This commit is contained in:
@@ -340,3 +340,9 @@ SocketUser.setModerationNote = function (socket, data, callback) {
|
||||
},
|
||||
], callback);
|
||||
};
|
||||
|
||||
SocketUser.gdpr = {};
|
||||
|
||||
SocketUser.gdpr.consent = function (socket, data, callback) {
|
||||
user.setUserField(socket.uid, 'gdpr_consent', 1, callback);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user