if ($profile{permissions} == $menu{link_access}) { print .... html to the link }