WP-API / menus-endpoints

Feature plugin for Menu Endpoints
43 stars 12 forks source link

Add permission check #40

Closed spacedmonkey closed 4 years ago

spacedmonkey commented 4 years ago

Add some basic checks (with tests) to check that current user has access to edit a menu / menu item before they can access the object. This means that the menu / menu items will not be public. As a menu might have sensitive data in it, let's make it private for now.

Fixes #26

spacedmonkey commented 4 years ago

Looping in @getdave , as this may affect work done on https://github.com/WordPress/gutenberg/pull/18869