Helper function to see if a user logged in or passed in through the props is part of a dao role