Allow users to edit own unpublished content I would like to provide users with role-A and role-B the ability to edit their own published and unpublished content. I've installed the Content Access Module and seems impossible to make this without coding. Does anyone know how to solve with code?
I am not sure about your exact requirement. If you want to list all contents created by current user with an edit link, my suggestion to make try with views.


Give Edit Own Content permission to your needed roles for all content types in Home » Administration » People » Permissions.
Create a view with content of all.
Add title in fields (or the fields you want).
If you want to give an edit link , add Content:Edit Link.
In views contextual filter add Content:Author uid = User ID from logged in user (Refer here).
Change format to Table (Only title and edit link is there this gives a nice formatting).


Hope this will help you.