jcoppieters / cody

Javascript Content Management System running on Node.js
howest.cody-cms.org
MIT License
678 stars 197 forks source link

User roles #44

Closed gokhandeveloper closed 8 years ago

gokhandeveloper commented 8 years ago

Hi, I was wondering if it would be possible to have user roles in this? And do I need to use mysql? Do you have a gateway for this?

jcoppieters commented 8 years ago

Hi,

1) roles? no we have levels, standard only 3 are used, but you can add as many as you want, if you use them in your application. They are in the table "levels"

 +------+-------+
 | id   | name  |
 +------+-------+
 |    2 | user  |
 |   50 | admin |
 |   99 | super |
 +------+-------+

2) Yes, we use mySQL as standard DB. we have plans to add sequelize to Cody, so you could switch database to sqlite, postgresql, sql*server, etc... but that is future work / to be done.

of course always welcome to submit a patch :-)

Johan.