@Marcin ***********
Yes, that's correct. The MFA issues the DTV, while Immigration is responsible for border and in-country controls and certain visa renewals. That’s why you may still be checked, even if you already have a visa. Obtaining a visa is an initial screening step to help authorities prevent crime, but it is not a long-term guarantee especially for visas valid for up to five years.