Skip to content
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

Sharing: not accessible for editors and author on Jetpack sites #1652

Closed
jkudish opened this issue Dec 16, 2015 · 14 comments
Closed

Sharing: not accessible for editors and author on Jetpack sites #1652

jkudish opened this issue Dec 16, 2015 · 14 comments
Labels
[Feature] Sharing Features and settings for sharing posts across different platforms, including sharing buttons. Jetpack [Type] Bug When a feature is broken and / or not performing as intended

Comments

@jkudish
Copy link
Contributor

jkudish commented Dec 16, 2015

The /sharing screen is not accessible for non-admins on a Jetpack site. Specifically editors should be able to fully manage connections and authors should be able to add/remove their own connections (but not make them shared).

This works 100% as expected for WordPress.com sites (except for a notice that is fixed with #1653)

I believe the main issue is that the page checks isModuleActive( 'publicize' ) which returns false because non-admins can't access Jetpack modules.

@jkudish jkudish added Jetpack [Feature] Sharing Features and settings for sharing posts across different platforms, including sharing buttons. labels Dec 16, 2015
@mtias
Copy link
Member

mtias commented Dec 16, 2015

The isModuleActive check is also annoying for things like this: #1425.

@lezama
Copy link
Contributor

lezama commented Dec 16, 2015

I am going to add the array of active modules to /me/sites/ and /sites/%site%/ endpoints responses, independent of the user capabilities, sounds good?

@mtias
Copy link
Member

mtias commented Dec 16, 2015

@lezama finalmente :)

@lancewillett lancewillett added the [Type] Bug When a feature is broken and / or not performing as intended label Dec 16, 2015
@aduth
Copy link
Contributor

aduth commented Dec 16, 2015

I am going to add the array of active modules to /me/sites/ and /sites/%site%/ endpoints responses, independent of the user capabilities, sounds good?

Would this make module status available for unauthenticated users? While I personally don't have a problem with Jetpack module status being made available publicly, this diverges from existing capabilities checks for /sites/%s/jetpack/modules. Any changes should be consistent between the two endpoints.

Adding to the site endpoints may also increase the response time already slow endpoints, and worsens the problem of the site endpoint being a dumping ground.

See also: D509

@mtias
Copy link
Member

mtias commented Dec 16, 2015

Adding to the site endpoints may also increase the response time already slow endpoints, and worsens the problem of the site endpoint being a dumping ground.

In this case, I think it's so fundamental to the site that it helps the development and user experience.

@lezama
Copy link
Contributor

lezama commented Dec 16, 2015

Adding to the site endpoints may also increase the response time already slow endpoints

It only implies one more get_option call per Jetpack site, is that too much?

@aduth
Copy link
Contributor

aduth commented Dec 16, 2015

I think there's more legitimacy to including Jetpack module status than some of the other attributes that have been added to the site endpoint, so I'm not very concerned about it. Outside this case, I think we shouldn't be afraid to make network requests to appropriate endpoints, and perhaps we can be doing more caching to lessen the effect on the user-experience.

@mtias
Copy link
Member

mtias commented Dec 16, 2015

Yes, I completely agree with that.

@lezama
Copy link
Contributor

lezama commented Dec 16, 2015

I think we shouldn't be afraid to make network requests to appropriate endpoints, and perhaps we can be doing more caching to lessen the effect on the user-experience.

Definitely

@jkudish
Copy link
Contributor Author

jkudish commented Dec 16, 2015

Why not just adjust the permissions on the existing modules endpoint?

@jkudish
Copy link
Contributor Author

jkudish commented Dec 16, 2015

Noting that this blocks 266-gh-io that we're trying to push forward this week if possible.

@mtias
Copy link
Member

mtias commented Dec 16, 2015

Why not just adjust the permissions on the existing modules endpoint?

It'd allow us to render all the sidebar items before hitting the extra endpoints, which avoids the shuffling of items.

@lezama
Copy link
Contributor

lezama commented Dec 16, 2015

Why not just adjust the permissions on the existing modules endpoint?

Probably we will experience the same #1425 is reporting, we can render everything without extra network requests.

D712 should fix both problems

@jkudish
Copy link
Contributor Author

jkudish commented Dec 17, 2015

Fixed by #1700

@jkudish jkudish closed this as completed Dec 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Sharing Features and settings for sharing posts across different platforms, including sharing buttons. Jetpack [Type] Bug When a feature is broken and / or not performing as intended
Projects
None yet
Development

No branches or pull requests

5 participants