Skip to content

Commit 75a5d95

Browse files
committed
Fix dismiss notice
1 parent 1aee510 commit 75a5d95

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

php/class-admin.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ public function rest_endpoints( $endpoints ) {
111111
'method' => WP_REST_Server::CREATABLE,
112112
'callback' => array( $this, 'rest_dismiss_notice' ),
113113
'args' => array(),
114-
'permission_callback' => array( 'Cloudinary\REST_API', 'validate_request' ),
114+
'permission_callback' => function () {
115+
return Utils::user_can( 'manage_settings' );
116+
},
115117
);
116118

117119
$endpoints['save_settings'] = array(

0 commit comments

Comments
 (0)