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

Front-End Image Uploads #36

Open
JayWood opened this issue May 6, 2016 · 0 comments
Open

Front-End Image Uploads #36

JayWood opened this issue May 6, 2016 · 0 comments

Comments

@JayWood
Copy link
Contributor

JayWood commented May 6, 2016

@jtsternberg A few days ago I ran into the need to get this working in this commit - 8cd6c29

Obviously manage_options was too high, but upload_files is all that's really needed.

However, further exploration into this, if a post is published and the user is creating a 'front-end' edit form of some fashion, we also need to include 'edit_published_posts' as a cap. However this was really an edge case due to me needing to use 'contributors' and not subscribers.

So, the question is actually should we document this stipulation somewhere like here:
https://github.com/WebDevStudios/CMB2-Snippet-Library/blob/master/front-end/cmb2-front-end-wordpress-media-uploader.php#L29

Or just ignore it since it's an edge case...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant