add_submenu_page set for multiple roles [duplicate]

add_submenu_page() and similar functions accept a capability. Capabilities are slightly confusing in WordPress as every role name is a cap as well. So instead of just adding a role name, you could just take a capability that is shared between the roles of the Subscribers and the Editors.

As you can see from the capabilities and roles table in Codex, read for example is a capability that every role in WP has.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)