achref-benahmed
achref-benahmed
@raymondfeng
@richardpringle Hey sorry for the late answer. I fixed the problem and it's working. Thank you
Hi @superkhau I'm not trying to assign a role in the boot, I'm trying to assign a role in user.js file so that at every user created I can assign...
``` var config = require('../../server/config.json'); var path = require('path'); var models = require('../../server/model-config.json'); var Role =models.Role; var RoleMapping =models.RoleMapping; module.exports = function(User) { User.createAdmin = function(cb){ User.create([ {email: '[email protected]', password:...