Thanks for your work on this!
I think this module could be enhanced with one more permission per content type: Administer own [type] content revisions. That way you can grant a user access to revisions on their own blog posts (for example) without allowing them to administer revisions on all other blog posts.
I'll post a patch in a moment.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | node_revision_per_role-administer_own-2906897-2.patch | 1.56 KB | othermachines |
Comments
Comment #2
othermachines commentedPatch attached for review.
Users with the original administer $type content revisions will always be granted access to all nodes of that type.
If a user does not have that permission, administer own $type content revisions will grant access if they are the node's author.
I have slightly changed the labeling of the permissions so it is consistent with the node module and easier to read. I have not altered the machine name of the original permission, however, so no update is required.
Cheers -
Comment #5
takim commentedPatch has been reviews and tested and it works.
Comment #6
takim commentedThanks for contributing.
Comment #7
othermachines commentedYou're welcome. Next time if you could attribute the commit to the author of the patch that would be terrific. :)
Comment #8
takim commentedI did when I made commit.
http://cgit.drupalcode.org/node_revision_per_role/commit/?id=c5188a1
Comment #9
othermachines commentedThanks for the mention, but you should give author attribution. I see you didn't know that. Here's some helpful info: https://www.drupal.org/node/1146430
Cheers -