added roles with checking in middleware

- still need signup for orgs
- login for admin
This commit is contained in:
Arjun Patel
2019-01-26 20:23:06 -08:00
parent 794980ff61
commit 2bf26fccbf
13 changed files with 111 additions and 29 deletions
+2 -1
View File
@@ -20,7 +20,8 @@ module.exports = (sequelize, DataTypes) => {
},
monthly: {
type: DataTypes.BOOLEAN,
allowNull: false
allowNull: false,
defaultValue: false
},
num_causes: {
type: DataTypes.INTEGER,