-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Ability to select authors has vanished #3010
Comments
This should probably not be edit context, as we only want to select users, not edit them.
|
Specifically, this appears to be an issue in environments where the user does not have permission to request from:
This is really only considering the symptom of the problem. Also, the gutenberg/editor/sidebar/post-author/index.js Lines 34 to 44 in 63cb942
|
Only admins have the |
I mean in the sense that it didn't offer an explanation to why the issue exists. With consideration of #3010 (comment), one could argue this is "working as intended" so far as the REST API intends. Obviously leaves us in a bad situation for building an editor though... |
I'm not sure what you mean? This seems to be working as intended indeed, and also for Gutenberg. If you don't have right capabilities, you shouldn't be able to access the users in edit context. They should be retrieved in normal/view content, and be filtered server side. In this case the right approach seems to be removing the context argument and adding the role (author) argument. https://developer.wordpress.org/rest-api/reference/users/#arguments |
Role is not sufficient for querying the users which should be included in the dropdown. Related: #2157 |
You're totally right, somehow I thought that was equivalent to |
Well, I guess we should also create a core ticket for it, otherwise it will always stay a hack. |
Noting that this can also be an issue for sites which have configured plain permalinks. Related: |
Just to summarise the ability to select Authors based on the editing user's role
The response message for the 403 is
Note: The data in the drop down information has changed. |
In addition to https://core.trac.wordpress.org/ticket/42202, the underlying problem here is that the REST API limits However... WordPress' UI permits Editors to see other WordPress users when assigning the post author in Edit Post. Furthermore, Contributors and Authors can see (i.e. discover the existence of) other WordPress users in the Manage Posts view. We can't grant I don't have a great suggestion at this point. One idea, which I don't particularly like, is to permit |
Could exposing email addresses be an issue requiring GDPR consideration? |
With #6515 and #6529, I think we can get away with Although, in principle, we should be using |
There's a request to add this feature from the Gutenberg forums: https://wordpress.org/support/topic/how-to-change-post-author-2/ |
@lizkarkoski This was already sorted out with Gutenberg, so the forum thread may be a plugin conflict, etc. |
Got it. Thank you.
…On Thu, Aug 16, 2018 at 8:45 AM, Daniel Bachhuber ***@***.***> wrote:
@lizkarkoski <https://github.com/lizkarkoski> This was already sorted out
with Gutenberg, so the forum thread may be a plugin conflict, etc.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3010 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AQFh9o_4wGOXfzetTj6lypPHCp3dzRsjks5uRWl5gaJpZM4P3Kla>
.
|
Any traction on this? Still seems like there's no way to change a post author from within the post. |
This was reported on the support forums. The ability to change the author of a post has disappeared.
The text was updated successfully, but these errors were encountered: