File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 16
16
*/
17
17
var mongoose = require ( 'mongoose' ) ;
18
18
var timestamps = require ( 'mongoose-timestamp' ) ;
19
+ const config = require ( '../../config/config' ) ;
19
20
20
21
var User = new mongoose . Schema ( {
21
22
orcid : String ,
22
23
name : { type : String , default : '' } ,
23
- level : { type : Number , default : 0 } ,
24
+ level : { type : Number , default : config . user . level . default } ,
24
25
lastseenAt : { type : Date , default : Date . now }
25
26
} ) ;
26
27
User . plugin ( timestamps ) ;
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ exports.newOrcidUser = function (orcid) {
99
99
{
100
100
title : 'New user registration: ' + orcid ,
101
101
title_link : user_link , // important "data", do not remove
102
- text : "What user level should the new user get?" ,
102
+ text : "What user level should the new user get? She now has " + config . user . level . default ,
103
103
fallback : "0" ,
104
104
callback_id : "user_level" ,
105
105
color : "#004286" ,
@@ -110,7 +110,7 @@ exports.newOrcidUser = function (orcid) {
110
110
actions : [
111
111
{
112
112
"name" : "user_level" ,
113
- "text" : "Stay new user" ,
113
+ "text" : "New user" ,
114
114
"type" : "button" ,
115
115
"value" : "0"
116
116
} ,
You can’t perform that action at this time.
0 commit comments