Is not only that. The article 1.2 of the Spanish Constitution clearly states: "The national sovereignty resides in the Spanish people, from whom all the powers of the state emanate."
All Spanish people have the right to decide about all the things in Spain, not just a bunch of people.