BuddyPress: Error message after login "you don't have permission to access this page"

When trying to log in from:

https://www.mysite.net/wp-login.php

The error shows up:

Log in from https://www.mysite.net/wp-admin/ is working well