Give permissions to user of the same role I'm working in a site and I've to set node permissions (edit) so that a user can edit a node that is owned by a user of the same role.
If I have the role "redactor" I can edit any node that is owned by a user that as the role "redactor".
Is there a module that do this?

Or I've to write a custom module?
You can used module content access, he does that easily.


  This module allows you to manage permissions for content types by role and author. It allows you to specifiy custom view, edit and delete permissions for each content type




Or you have node access which add a tab on each node to control permission for this node (you can configure role or user) I never really used it because there's no very stable version for d7.