New law beefs up border policing
Most notably, police will have a much broader toolkit at its disposal to control the border.
For example, they will be explicitly allowed to take photos, make video and audio recordings, and use devices to identify persons, vehicles and objects, including automatic licence plate readers.
The owners of land on the border will have to allow the installation and use of such devices on their property.
In the event border control renders it impossible for owners to use their land for periods longer than two years, the state will have the right to limit property rights in exchange for financial compensation.
The bill also entitles property owners to compensation for the erection of border fence, with EUR 280,000 set aside in the 2017 budget and EUR 240,000 in 2018.
The government said this specific measure was needed since the erection of the border fence had encroached on the property rights of landowners, who will not be properly compensated.
Inside the country, lower stop and search standards will be instituted for police crews carrying out what is called compensatory measures.
These are patrols conducting Schengen checks inland and they will only need to establish the "probability" that a person had crossed the internal Schengen border to conduct a check.
The legislation sailed through parliament without much headwind, with only the opposition United Left (ZL) explicitly against, arguing that it was unconstitutional.
The other opposition parties endorsed the legislation in principle.
New Slovenia (NSi) deputy Jernej Vrtovec said these were "necessary and temporary measures" that had to be adopted on grounds of security.
As for the ZL's claim that the law is unconstitutional, Vrtovec said this was for the Constitutional Court to decide.