I have a question about the user roles recipe, it ...
# support-questions-legacy
a
I have a question about the user roles recipe, it mentions a bit that you need to create a role before you want to assign it to a user. But its not so clear how you create the role. In this case, is it done with createNewRoleOrAddPermissions function? if you add the permisson "read" for the role "creator", lets say, the core will check that role exists and if it does not, will it create the role in the DB and then add the permission you passed? - EDIT: went to the core repo and looked the function it has a comment confirming what I asked.
9 Views