Skip to content

Commit

Permalink
Add @deprecated comment to hasUploadPermissions() resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
noisysocks committed Jan 7, 2019
1 parent 251c8bc commit 4ea46a5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/core-data/src/resolvers.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ export function* getEmbedPreview( url ) {

/**
* Requests Upload Permissions from the REST API.
*
* @deprecated since 4.9. Callers should use the more generic `canUser()` selector instead of
* `hasUploadPermissions()`, e.g. `canUser( 'create', 'media' )`.
*/
export function* hasUploadPermissions() {
yield* canUser( 'create', 'media' );
Expand Down

0 comments on commit 4ea46a5

Please sign in to comment.