We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1aee510 commit 75a5d95Copy full SHA for 75a5d95
php/class-admin.php
@@ -111,7 +111,9 @@ public function rest_endpoints( $endpoints ) {
111
'method' => WP_REST_Server::CREATABLE,
112
'callback' => array( $this, 'rest_dismiss_notice' ),
113
'args' => array(),
114
- 'permission_callback' => array( 'Cloudinary\REST_API', 'validate_request' ),
+ 'permission_callback' => function () {
115
+ return Utils::user_can( 'manage_settings' );
116
+ },
117
);
118
119
$endpoints['save_settings'] = array(
0 commit comments