Check if user is admin, package admin or commiter to enable switch button