-
Notifications
You must be signed in to change notification settings - Fork 157
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
Prevent adding of terms to distributed posts & modifying discussion settings. #1069
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@peterwilsoncc This fix only works if the admin uses the mouse. Admin can still use the keyboard (TAB
) to edit categories, tags, and other settings.
I can see potential side effects with CSS and javascript approaches to resolve it.
Another approach:
We want to allow the admin to switch post status draft <---> publish
and trash
, right? In this case, I suggest hiding the Update
button instead of turning off other actions. We should also display a notice that the admin is not allowed to update post content and metadata for distributed posts.
@jeffpaul and @dkotter, Can you provide your feedback on this?
This is the first time I'm working with this plugin so please correct me if I'm saying something wrong. I have a similar suggestion to the one from @ravinderk. Instead of disabling all the checkboxes and text areas, or even hiding the What do you think about that @jeffpaul, @dkotter and @ravinderk ? |
@kmgalanakis-sage I agree that we should allow whitelisted post data for distributed posts and for others we should return an error, a display notice, etc. |
Yes, I've noticed this too with the existing code, for example hitting return on a confirmation box works but clicking the button does not. To avoid the perfect being the enemy of the good, I think we can continue with the CSS approach and consider a JavaScript approach in an subsequent release. The |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@peterwilsoncc I agree with your comment #1069 (comment), and this makes sense to continue with the CSS approach and update it in the subsequent release.
Description of the Change
Modifies the CSS used on distributed posts to disable to modification of terms to prevent the labels from being clicked on. As a side effect, this also prevents modifying the discussion settings too (as it also changed by clicking on the label).
Closes #468
How to test the Change
Changelog Entry
Credits
Props @peterwilsoncc, @turtlepod, @jeffpaul.
Checklist: