65To that end, that court must be able to rule on all relevant matters of fact and law in order to determine whether, in addition to the very principle of the detention of the third-country national concerned, the derogation rules under which that detention will be carried out, under Article 18 of Directive 2008/115, are justified. That court must, therefore, be able to take into account both the facts stated and the evidence adduced by the administrative authority requesting detention in a prison facility and any observations that may be submitted by the third-country national. Furthermore, it must be able to consider any other element that is relevant for its decision should it so deem necessary. Accordingly, the powers of the judicial authority can under no circumstances be confined just to the matters adduced by the administrative authority concerned (see, by analogy, judgment of 5 June 2014, Mahdi, C‑146/14 PPU, EU:C:2014:1320, paragraph 62).
Source: EUR-Lex, © European Union, 1998-2026. Reuse authorised under Decision 2011/833/EU.