User without list_users capability can list users in post settings
Expected behavior
Users with limited roles should not be able to select Author on posts
Actual behavior
Author is not selected in post settings by default, causing post to not allow publish βΒ going to post settings, limited user is allowed to see ALL USERS on the website.
Steps to reproduce the behavior
Log into Wordpress app with a user has List_users capability revokes, select AUTHOR on a post. See list of authors
Here is the log from the app with site redacted for now (WORDPRESSWEBSITE)
2022-11-21 09:48:42:052 π΅ Tracked: editor_post_publish_now_tapped <>
2022-11-21 09:48:42:072 π΅ Tracked: editor_post_published <editor_source: gutenberg, has_gutenberg_blocks: 1, has_wp_stories_blocks: 0, post_type: post, with_categories: 0, with_photos: 0, with_tags: 0, with_videos: 0, word_count: 0>
2022-11-21 09:48:42:083 π΅ Tracked: editor_session_end <blog_type: core, content_type: new, editor: gutenberg, entry_point: postsList, has_unsupported_blocks: 0, outcome: publish, post_type: post, session_id: E1719E29-945C-48B6-B936-BD6E8BAF5256>
2022-11-21 09:48:42:101 π΅ Tracked: editor_closed <editor_source: gutenberg, has_gutenberg_blocks: 1, has_wp_stories_blocks: 0>
2022-11-21 09:48:46:399 Failed syncing publicize connections for blog https://WORDPRESSWEBSITE: WordPress.SharingService.SharingServiceError.siteWithNoRemote
2022-11-21 09:48:46:402 Failed updating plans: (null)
2022-11-21 09:48:46:402 Failed checking domain credit for site https:/WORDPRESSWEBSITE: Error Domain=PlanService Code=0 "Unable to update plan prices. There is a problem with the supplied blog." UserInfo={NSLocalizedDescription=Unable to update plan prices. There is a problem with the supplied blog.}
2022-11-21 09:48:46:979 FAB: failed creating BloggingPromptsService instance.
2022-11-21 09:48:46:980 π΅ Tracked
Tested on [device], iOS [version], WPiOS [version]
iPhone 13PRO iOS 16.0 WPiOS 21.1
@dvdchr Not sure how to label this issue correctly, can you assist?
Hi @yratof ! ππΌ Thanks for reporting, and I appreciate you posting the logs from the app. That's cool! π
I've labeled the issue properly for now, and we will take a look at the issue.