Closed rm-yakovenko closed 4 years ago
@rm-yakovenko Can you please update the user controller test, to ensure you need to be "OWNER" before you can do an update
@Bottelet Fixed one more issue related to role changing.
Can you please update the user controller test, to ensure you need to be "OWNER" before you can do an update
I'm not sure that I got it right. Let me know if the provided test isn't ok.
Thanks for your contribution! I made a few changes, but I really appreciate the work!
You can see the changes here if interested: https://github.com/Bottelet/DaybydayCRM/commit/bff89c530600fe1c0fac56f5b488545726c29dbb
$role->first()
makes a db query and fetches the first item in theroles
table. And it's Owner.