The guy was lazy and didn't write anything...
April 17, 19:32
When WordPress displays "Sorry, you don't have permission to access this page", it's usually because the account permissions have been changed incorrectly. There are two ways to fix it: if you can access the database, you can change the user permissions field in phpMyAdmin to restore your administrator status; if you can't log in to the backend or manipulate the database, you can also add code to the functions.php of the theme temporarily via FTP to create a new administrator account to log in to the backend and fix the permissions. Both methods are effective in restoring access rights, and it is recommended to backup website data before operation.





