Message about active data requests on My profile page
Move code for checking user roles to reusable function