Improve select global permission in authorization DAO to take into account user roles and anonymous user