{"id":18992094,"date":"2026-08-13T04:15:09","date_gmt":"2026-08-13T04:15:09","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/get-error-unauthorized-user-when-login-as-editor-role\/"},"modified":"2026-08-13T04:15:09","modified_gmt":"2026-08-13T04:15:09","slug":"get-error-unauthorized-user-when-login-as-editor-role","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/get-error-unauthorized-user-when-login-as-editor-role\/","title":{"rendered":"Get error &#8220;Unauthorized user&#8221; when login as Editor role"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">There is a bug in this plugin that is preventing Editor users to login. I had to add a patch to functions.php in my theme to let Editor roles login. I believe the bug is in the handle_clear_log() function.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">That function checks (<code>current_user_can('manage_options')<\/code>) <strong>before<\/strong> checking whether the request is actually a &#8220;clear logs&#8221; submission (the <code>isset($_POST['gf_clear_logs'])<\/code> check)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Please fix, thank you<\/p>\n","protected":false},"template":"","class_list":["post-18992094","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18992094","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/18992094\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=18992094"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}