Feat(privacy): Add granular privacy controls of public profile (#17178)
* feat(privacy): Add granular privacy controls of public profile * feat(certs): Hide certs if showCerts is false
This commit is contained in:
committed by
Quincy Larson
parent
a1f2fc7c5c
commit
bb4bcbfb45
@@ -114,6 +114,18 @@ export default function settingsController(app) {
|
||||
);
|
||||
}
|
||||
|
||||
function updateMyProfileUI(req, res, next) {
|
||||
const {
|
||||
user,
|
||||
body: { profileUI }
|
||||
} = req;
|
||||
return user.updateMyProfileUI(profileUI)
|
||||
.subscribe(
|
||||
message => res.json({ message }),
|
||||
next
|
||||
);
|
||||
}
|
||||
|
||||
function updateMyProjects(req, res, next) {
|
||||
const {
|
||||
user,
|
||||
@@ -164,6 +176,11 @@ export default function settingsController(app) {
|
||||
ifNoUser401,
|
||||
updateMyPortfolio
|
||||
);
|
||||
api.post(
|
||||
'/update-my-profile-ui',
|
||||
ifNoUser401,
|
||||
updateMyProfileUI
|
||||
);
|
||||
api.post(
|
||||
'/update-my-projects',
|
||||
ifNoUser401,
|
||||
|
Reference in New Issue
Block a user