5
SPie
6y

A question, because we currently discussing it at work:
We want to add a permission role system and we will have kind of fixed permission roles like a role without any permissions, a support role with some permissions and an admin role with all permissions. Should I add role entries in migrations?
The role system wouldn't be very generic anymore.
But we need e.g. a default role for new users and I don't know how to do it, without a fixed role in db.
Maybe you all have an opinion on it.

Comments
  • 0
    Currently we have a setup process for new customers which does add some default things like roles. New users are added to all roles for which a certain flag is set.
    We didn't have many customers, so we were able to do the migration manually.
  • 0
    Yes. Default admin role must be added.
    Note : Password must be reset from email.
Add Comment