Added access rights feature + read access check

This commit is contained in:
NGPixel
2016-10-31 22:44:00 -04:00
parent 09b4d37f4c
commit a05560e9fc
9 changed files with 122 additions and 17 deletions

View File

@@ -131,7 +131,13 @@ module.exports = function(passport, appconfig) {
provider: 'local',
email: appconfig.admin,
name: "Administrator",
password: pwd
password: pwd,
rights: [{
role: 'admin',
path: '/',
exact: false,
deny: false
}]
});
}).then(() => {
winston.info('[' + PROCNAME + '][AUTH] Administrator account created successfully!');