Skip to content

Shouldn't be able to subscribe someone to notifications if they can't edit post. #265

@jerclarke

Description

@jerclarke

Correct me if I'm wrong, but after some testing it seems that you are able to subscribe a user to a post in the Notifications box even if they don't have edit_others_posts and thus won't be able to "edit" the post and see Editorial Comments etc.

My testing implies that this is at least partially corrected by just not sending notifications to users who wouldn't be able to edit. Is that right?

Either way it seems like a terrible idea to let people subscribe users who won't be able to log in and won't get notified. It's bound to cause confusion even among users that understand what's going on, but more than that it assumes that every user not only understands the roles+capabilities system in WP (i.e. that some users can/can't edit_others_posts, which takes our editors a while to grasp) but also knows what role each other user has (and thus whether they can successfully subscribe someone).

If I'm not wrong above I think it would be much better if Edit Flow protected users from making the mistake of subscribing someone who won't get notified.

One way would be to allow them to do so, but with an obvious warning that the user won't get any emails about the post because they can't edit.

The other way would be to allow the user to be found while searching (to avoid confusion if they are missing) but de-activate the user from being subscribed with some kind of warning/label expressing the fact that they are inactive because they wouldn't have permission to edit the post.

Hope that makes sense! Thanks for considering it :)

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions