Skip to content
Snippets Groups Projects
Commit dc8274db authored by Vytor Calixto's avatar Vytor Calixto :space_invader:
Browse files

Add admin role to user post route

parent a551e171
No related branches found
No related tags found
1 merge request!116Release v1.0.0
Pipeline #
......@@ -137,7 +137,8 @@ userApp.post('/', (req, res, next) => {
receiveEmails: false || req.body.receiveEmails,
origin: req.body.origin,
citesegment: req.body.citesegment,
citerole: req.body.citerole
citerole: req.body.citerole,
admin: false
});
if (typeof req.body.password === 'undefined' || !req.body.password) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment