Skip to content

Commit 02b6ede

Browse files
move access to admin
1 parent f29425c commit 02b6ede

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/class-tiny-diagnostics.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ private function get_tiny_info() {
176176
public function download_diagnostics() {
177177
check_ajax_referer( 'tiny-compress', 'security' );
178178

179-
if ( ! current_user_can( 'edit_posts' ) ) {
179+
if ( ! current_user_can( 'manage_options' ) ) {
180180
wp_send_json_error(
181181
esc_html__( 'Not allowed to download diagnostics.', 'tiny-compress-images' ),
182182
403

0 commit comments

Comments
 (0)