Added user consent pages (#6430)

- "Your Rights & Consent" user settings page
This commit is contained in:
Julian Lam
2018-04-09 12:22:44 -04:00
parent 7cd004ca23
commit 8e822c7772
10 changed files with 120 additions and 12 deletions

View File

@@ -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);
};