Unable to access wp-admin

when I try to access /wp-admin with admin credentials, I get this error "Sorry, you are not allowed to access this page"
I have replaced wordpress core using ftp. I have also checked disabling plugins.