bu-ist / bu-versions

Make and save edits to published posts/pages in WordPress without immediately replacing the public content.
https://developer.bu.edu/bu-versions/
19 stars 5 forks source link

When adding alternate version list pages, the capability should be derived from the post type. #12

Closed gcorne closed 9 years ago

gcorne commented 10 years ago

Currently, the 'edit_pages' capability is used for all post types. Instead, the capability should be based on the capability used for the original post type.

See https://github.com/bu-ist/bu-versions/blob/0.7.3/bu-versions.php#L147