Custom role based users are not able to access wp-admin
The read capability must be set to true, so they can access. Keep in mind, roles are saved to the database, when you run it on every init action, this is considered to be time consuming. The Codex suggests to run those actions in the register_activation_hook(). Since you are using this code in your theme, … Read more