codeforkansascity / cmr-clinic-admin-api

Administration and API for Clear My Record
MIT License
2 stars 8 forks source link

Update set initial permissions so it sync's the permission instead of just adding new ones. #232

Open zmon opened 3 years ago

zmon commented 3 years ago

Currently, if an permission is removed from a role the database is not updated.

In setCreateAndSetRolesPermissions()

$role->syncPermissions($permissions);