It would be nice to include a content editor role. Ability to edit/view any site content, similar to the site maintainer role, but not have access to private user information. No editing of profiles, no access to commerce or registration info, etc.

Thoughts?

Comments

saltednut’s picture

Agreed, this would be useful - is this role a part of cod_base?

twardnw’s picture

Issue tags: +da_drupalcon

cod_base feels to me like the appropriate place to include this role

dsdeiz’s picture

StatusFileSize
new9.08 KB

Patch attached. Adds "Content editor" role which has similar permissions as the "Site administrator". I'm guessing I can't add content type related permissions on the role until the other submodules that create new content types are ported.

mjonesdinero’s picture

Status: Active » Needs review

Hi i apply the patch on comment #3 and the patch was apply clean.. and from what on the comment said// it adds "Content Editor" role with same permission from the site administrator..

But permissions on content type is still not their as what stated on the comment.

ezra-g’s picture

+1 for this type of role.

Do you see this role as having the "administer content types" or the ability to edit any node on the site, or just a restricted set of content types?

If the ability to edit nodes or content types is site-wide, we should call this role "content administrator" to signal that this is a role that should only be given to trusted users.

juampynr’s picture

StatusFileSize
new8.97 KB

Agree, content administrator makes more sense.

Here is the patch updated with that role name.

twardnw’s picture

patch applies clean, creates role, has no permissions at this point.

twardnw’s picture

StatusFileSize
new9.27 KB

I went ahead and added the 'administer content' permission to the feature.

mjonesdinero’s picture

StatusFileSize
new213.09 KB

hi patch applies cleanly, though have a question on #8 "administer content" is not checked when i applied the patch.

juampynr’s picture

@mjonesdinero, did you revert cod_base feature after applying the patch?

sheldonkreger’s picture

StatusFileSize
new9.27 KB

I had the same problem as mjonesdinero. New patch solves, should be good to go!

mjonesdinero’s picture

StatusFileSize
new134.66 KB

apply the patch on #11 and "administer content" is checked when i applied the patch.

@juampy.. thanks for the info need to revert the features after applying the patch

primerg’s picture

tested with new install of cod and dev version of cod_support.
- role is there with the administer problem
- experienced that it wasn't working. can be fixed if you check the "View published content". this one is being added in http://drupal.org/node/1661620 . i think apply that first?

twardnw’s picture

So, maybe I don't understand what the 'administer content' permission gains a user? Assigned a user to the role, but they can't edit anything or access anything under /admin and pieces of content have no edit links...

jackbravo’s picture

StatusFileSize
new2.32 KB

Re roll of the patch, adding the "access content overview" permission" so that the user can go to "/admin/content". But right now the user has no way to go there (no menu-item) except writing the URL on his browser.

dsdeiz’s picture

Patch applies cleanly on my end.

jackbravo’s picture

And does it work? So we can mark as reviewed. You should be able to edit any node and go to /admin/content once applied if you have a user with role content editor.

japerry’s picture

Re-rolled this patch to give a few more permissions and make it compatible with the newly committed administrator patch for D7.

Requires Features 7.x-1.0

ezra-g’s picture

Status: Needs review » Needs work

Discussed with japerry: We should grant permissions from the other roles to the 'administrator' role.

japerry’s picture

Added roles and fixed problem with only anon users getting access to content. ;-)

ezra-g’s picture

#20 doesn't apply.

sheldonkreger’s picture

StatusFileSize
new69.63 KB

Yes, 20 failed to apply for me as well. See attached image.

japerry’s picture

Status: Needs work » Needs review
StatusFileSize
new13.06 KB

Lets try this one instead

ezra-g’s picture

Status: Needs review » Needs work

This export includes orphaned permissions for Webform, which is not a dependency of COD_Base. #1673028: new role: content editor.

twardnw’s picture

the latest cod_support is showing it as a dependency

19 dependencies[] = views
 20 dependencies[] = webform
 21 features[ctools][] = strongarm:strongarm:1
ezra-g’s picture

Webform is not a dependency of COD Base: http://drupalcode.org/project/cod_support.git/blob/refs/heads/6.x-1.x:/c....

Per #24, this needs to be re-rolled to remove the Webform permissions.

japerry’s picture

Status: Needs work » Fixed

Webform removed, and content editor role added

Per this: 4a1e817715d44a917520e5dfe1b9f46dbd78f086

Automatically closed -- issue fixed for 2 weeks with no activity.