Fatal error: Call to undefined method Rights::getAuthorizer()

Did some changes in database, and then synchronize it,it was working perfectly, but now when an admin or anyone gets login, this error shows up, and when i refresh the page it takes me to localhost/project/user/profile. I set the roles that whenever an admin or owner gets login, he should redirect to the business page, but now redirecting is not working too.