Advokat mener kommunen har brutt loven