This commit is contained in:
Dobie Wollert
2015-12-16 09:12:35 -08:00
parent f9c9672818
commit f94ca33b9e
805 changed files with 67409 additions and 24609 deletions

View File

@ -11,10 +11,26 @@ var userSchema = new Schema({
picture: String,
refreshToken: String,
accessToken: String,
groups: [String],
perms: [String],
deleted: { type: Boolean, default: false }
employmentType: {
type: String,
enum: ['hourly', 'salary'],
default: 'hourly',
required: true
},
unpaidTravel: {
type: Number,
default: 0,
required: true
},
deleted: {
type: Boolean,
default: false
}
});
userSchema.methods.hasPermission = function(perm) {