Closed (fixed)
Project:
Drupal.org customizations
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
2 Aug 2022 at 16:53 UTC
Updated:
27 Sep 2022 at 19:44 UTC
Jump to comment: Most recent
Comments
Comment #2
avpadernoComment #3
drummI actually can’t think of a valid reason for any site moderator to unpublish any release. They might not even need edit access. Let’s start with removing site moderator release edit access. We can always adjust this later, if there’s some use case I’m not thinking of.
We will also have to remove access to the publish/unpublish checkbox on the release edit form. In this case, you did have edit access as a project maintainer. Site moderator access should not allow changing the published status in this case.
Comment #4
drummSite moderators currently have the “administer nodes” permission. We should review the goals of the role, and tasks expected. That will help decide if that blanket permission should be swapped for the more-fine-grained permissions, or if we keep “administer nodes” access and add additional custom access alterations.
Comment #5
japerryWhat about fixing typos or adding information to the release notes on a release node?
Otherwise I agree that there shouldn't be any need to unpublish a release if it's effect is the same as deleting a tag, which shouldn't/cannot be done already.
Comment #6
drummI’d think adding information to release notes would only ever be done by a project’s maintainer. If you aren’t the maintainer of the project, you should file an issue to request that they update the release notes.
Comment #7
japerryOhh yes, I misunderstood the original message. The only reason why a site moderator would need access is if someone put things in the release notes that violated CoC, security, or other rules. But since that is pretty rare, and would probably lead to a bunch of other issues, its probably safe to delegate those issues to DA staff only anyway.
Comment #8
drummSince there are a few roles with administer nodes, and this should apply to all of them. We should keep “administer nodes” access and add additional custom access alterations. I’ve updated the issue summary with the changes that should be made.
Comment #12
fjgarlin commentedImplemented the proposed resolution and the code is ready to review.
I disabled the "published" checkbox instead of hiding it as there is some core javascript that expects it to be there and if it's not, it'll say "Not published", regardless of the actual value.
Comment #13
japerryFirst pass of this looks good, is there site accessible to test this change? Another option, if the disable function has issues, is to put a check during the validate phase. Since this option would only be accessible by those with 'administer content', the typical UI weirdness of "cannot unpublish a released node" after save wouldn't be that bad.
Comment #14
fjgarlin commented@drumm - All feedback in the MR was addressed.
@japerry - https://fjgarlin-drupal.dev.devdrupal.org/ and then edit any release. In this instance and just for testing, the new permission has been given only to "Site moderators".
Comment #17
drummThis is deployed now. Thanks!
Comment #18
japerryYup, I can verify that its working on prod. thanks all.