Adding roles in fosuserbundle sumfony2 -


i need add new roles in fosuserbundles because went make differentiation between user:student or teacher , admin.

when register roles default role_user that's why went add student or teacher when went register , when make command in cmd :php app/console fos:user:demote testuser role_admin php app/console fos:user:demote testuser role_student.

it accept went how can add roles when register please can me ?

the same way demote user, can promote user calling:

php app/console fos:user:promote user role 

you must have role defined in security.yml


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -