-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[UX] Add the 'Administer content' permission to the editor role on new installs #4541
Comments
...I have done a search across our codebase for TL;DR: it seems that the Other than .test files, the
|
So we could do this the "proper" way, by introducing a new permission, or we could just go down the easy path, and simply grant the "Administer content" permission to the "Editor" role (knowing that this would allow content editors access to authoring information, and revision settings if enabled for the content type). Thoughts? |
I've added that permission to the editor role (test site) and browsed around to see what I can do. Seems like the effects are pretty much limited to "publishing options," "authoring information," and "revisions." I think it would be perfectly safe to give all these permissions to the editor role. My gut reaction is that creating a new permission for the ability to schedule content publishing probably isn't necessary. But, I could be convinced otherwise. |
Yup, as I said: "...or we could just go down the easy path" 😄 |
Have you tried editing content that another user has created? |
Yes, it seems to work fine. I went ahead and created a PR that just adds the "administer nodes" permission to the editor role, so that folks can try it out. Login to the sandbox for this PR with: UN = Test Editor This user has the editor role and you can see what they are able to do. |
No it doesn't 😅 ...
That's why the "Administer content" permission has this description/note:
|
...we need a permission that allows users to access publishing/scheduling options for their own content. "Administer content" allows them to access and edit ALL content. |
Editors have permission to edit other peoples content by default. We already have a permission for that and we currently give it to editors by default. In my view its a reasonable assumption that most site editors should be able to edit anyone's content. That is what the role is, editor. I view an editor as the person responsible for maintaining content on the site. I expect that a regular authenticated user can edit their own content, but not edit the content of others. An editor, in my view, has permission to edit anyones content. Clearly, some sites may choose to assign these permissions differently. We could remove the permission to edit other peoples content, but our current position is that they can by default, which makes sense to me. If we don't want editors to edit other peoples content, we shouldn't give them that permission.
This might make sense, but that would be a different issue. This issue was about editors, not regular users. The ability to give end users the ability to schedule posts would be reason for creating a new permission. But, I don't think that a new permission is necessary to give the "editor" role the ability to schedule posts. |
Hmm 🤔 ...you are absolutely right @stpaultim. Sorry about that then. I guess that too much work on GovCMS and how government agencies have established the defaults for their workflows has affected how my brain is wired (they have "Content Editor" and "Content Approver" roles OOTB). Please ignore me. PS: also, if I had checked that to begin with, I would have saved myself so much time 😅 |
I'd be OK with giving the Editor role the Administer Content permission OOTB. |
Understandable in the current situation, as long as Backdrop core is missing fine-grained content editing permissions (see discussion in #815, contrib module: Override Node Options). Administer Content is however very permissive. I guess we provide it only on new sites as default, right? For reference: Revisit permissions for the OOTB "Editor" role |
Yup. That was my main concern; that's why I proposed a new permission, specifically for publishing/unpublishing/drafting/scheduling.
Correct. |
Yes, all permissions for the editor role are assigned by the standard install profile, so they will only effect new sites. We can tweak these settings over time without effecting existing sites. Again, I created an editor account in the PR sandbox for anyone that wants to easily test exactly what an editor can do after this PR: UN = Test Editor
I don't know how I feel about this yet (if we need it in core), but it seems like a legit use case. Opening a separate issue to get feedback. |
Should we use that issue #4339 to collect all the existing and upcoming Editor permission issues? |
I know this issue is RTBC, but I'm hesitant to merge its PR as this issue was only opened less than a week ago and so far has only 4 participants. For such a significant change (Editors getting more permissions OOTB) I wonder if we need more feedback...? |
I disagree that it's really that significant. We're giving the site editor the ability to administer nodes. In my view, that's pretty much what the role of editor is. Before we added this role, the same user would probably have been given full admin privileges to administer everything. And, this only effects new sites. ;-) HOWEVER, I do understand your concern and thinks it's totally reasonable to wait for a few more folks to chime in - in case I'm wrong. I'll work on rounding up a few more reviewers. It would be nice to hear from @quicksketch or @jenlampton if they have any concerns. |
In Zulip, @quicksketch said: "With OOTB issues like this, it can be a big change but easily reversible (though we would probably wait minor releases between changes). So +1 for go ahead with it." |
Does anyone have an idea for a better issue title? The current one doesn't mention the "Administer content" permission and might make it hard to find this issue after a while. Current title:
|
@olafgrabienski How's that? |
Looks good, thank you! |
I'm ok with this change |
Thanks for the feedback all! I feel this is ok to go into the next minor release (it doesn't have an advocate, but its PR is ready to be committed). |
Thank you @klonos for the suggestion, and to @stpaultim for the PR! I've merged backdrop/backdrop#3248 into 1.x. |
On a vanilla installation of Backdrop, if you create a new user and assign them the "Editor" role, this is what they see when trying to create content:
This means that the "Editor" role cannot schedule content for publishing, and more importantly, they cannot save drafts. "Locking" people to this state where they can only either make content live immediately, or keep browser tabs open in order to not lose their job is bad UX.
There's the "Administer content" permission (machine name
administer nodes
), which if you grant it to them allows them access to the "Publishing options" vertical tab, but also the "Authoring information" vtab:I believe that it is expected for content editors to be able to publish, save as draft, and schedule content for publishing. On the other hand, being able to change the authoring date and author information is not something that the average site would allow.
So I would like to propose that we introduce a new permission (something like "Access content publishing and scheduling options"), and that we grant that to the "Editor" role OOTB.
The text was updated successfully, but these errors were encountered: