Prisons (Scotland) Act 1989
1989 c. 45
An Act to consolidate certain enactments relating to prisons and other institutions for offenders in Scotland and connected matters.
[16th November 1989]
Be it enacted by the Queen’s most Excellent Majesty, by and with the advice and consent of the Lords Spiritual and Temporal, and Commons, in this present Parliament assembled, and by the authority of the same, as follows:—
All powers and jurisdiction in relation to prisons and prisoners which before the commencement of the Prisons (Scotland) Act 1877 were exercisable by any other authority shall, subject to the provisions of this Act, continue to be exercisable by the Secretary of State.
(1) The general superintendence of prisons shall be vested in the Secretary of State.
(1A) Every prison shall have a governor and such other officers as may be necessary.
(2) The Secretary of State shall appoint to each prison a chaplain being a minister or a licentiate of the Church of Scotland.
(3) The Secretary of State shall make contracts and do all other acts necessary for the maintenance of the prisons and prisoners therein.
(4) There shall be provided such office accommodation in connection with the general superintendence of prisons as the Secretary of State, with the consent of the Treasury, may determine.
(1) The Scottish Ministers must designate one or more medical officers for each prison.
(2) A person may be designated as a medical officer for a prison only if the person is a registered medical practitioner performing primary medical services for prisoners at the prison under the National Health Service (Scotland) Act 1978 (c.29).
(3) A medical officer has the functions that are conferred on a medical officer for a prison by or under this Act or any other enactment.
(4) A medical officer is not an officer of the prison for the purposes of this Act.
(5) Rules under section 39 of this Act may provide for the governor of a prison to authorise the carrying out by officers of the prison of a search of any person who is in, or is seeking to enter, the prison for the purpose of providing medical services for any prisoner at the prison.
(6) Nothing in rules made by virtue of subsection (5) allows the governor to authorise an officer of a prison to require a person to remove any of the person's clothing other than an outer coat, jacket, headgear, gloves and footwear.
(1) Subject to any directions of the Secretary of State officers duly authorised by him shall visit and inspect all prisons and examine the state of the buildings, the conduct of officers, the treatment and conduct of the prisoners and all other matters concerning the management of prisons.
(2) The Secretary of State may, by himself or by any authorised officer, exercise in relation to any prison and the prisoners therein all powers and jurisdiction exercisable by the prison authority of a prison by virtue of any Act of Parliament or by any rules duly made thereunder.
(1) The Secretary of State shall, at such time or times as he may think fit, cause a report to be prepared of the condition of the prisons and prisoners, and shall lay such report before Parliament.
(2) A report prepared under subsection (1) above shall state the various manufacturing processes carried on in each prison with such particulars as to the kinds and quantities of, and the commercial value of the labour on, the manufactures, and as to the number of prisoners employed and otherwise as may in the opinion of the Secretary of State be best calculated to afford information to Parliament.
The Secretary of State shall make a yearly return to Parliament of all punishments inflicted within each prison and the offences for which they were inflicted.
6A Purpose of inspection and monitoring of prisons
The provisions of sections 7 to 7G are in pursuance of the objective of OPCAT, that is, the objective of establishing a system of regular visits undertaken by independent international and national bodies to places where people are deprived of their liberty in order to prevent torture and other cruel, inhuman or degrading treatment or punishment.
7 Appointment and functions of Her Majesty’s Chief Inspector of Prisons for Scotland.
(1) Her Majesty may appoint a person to be Chief Inspector of Prisons for Scotland.
(2) The functions of the Chief Inspector are—
(a) to inspect, or arrange for the inspection of, prisons and the treatment of prisoners,
(b) to inspect the conditions in which prisoners are transported or held in pursuance of prisoner escort arrangements (within the meaning of section 102 (arrangements for the provision of prisoner escorts) of the Criminal Justice and Public Order Act 1994),
(c) to inspect the arrangements operated by prisons for the temporary release of prisoners in accordance with rules made under section 39,
(d) to investigate specific matters connected with prisons or prisoners which have been referred to the Chief Inspector by the Scottish Ministers,
(e) to issue instructions to prison monitoring co-ordinators in relation to the exercise of their functions,
(f) to prepare and publish guidance on the exercise of the functions of prison monitoring co-ordinators and independent prison monitors,
(g) to evaluate the performance of each prison monitoring co-ordinator, and
(h) such other functions as are conferred on the Chief Inspector by this or any other enactment.
(3) The Chief Inspector must report to the Scottish Ministers—
(a) following an inspection carried out under subsection (2)(a),(b) or (c),
(b) following an investigation carried out under subsection (2)(d), and
(c) annually, in relation to—
(i) the conditions in prisons and the treatment of prisoners, and
(ii) the exercise of the functions of independent prison monitors.
(4) In relation to a report made under subsection (3)(c)—
(a) the report is to be in such form and made by such date as the Scottish Ministers may direct, and
(b) different forms and different dates may be directed in relation to reports made under subsection (3)(c)(i) and (ii).
(5) The Chief Inspector must lay before the Scottish Parliament—
(a) a copy of any report made under subsection (3)(c), and
(b) a copy of any report made by a prison monitoring co-ordinator under section 7B(6)(b) or (c).
(6) The Chief Inspector may report to the Scottish Ministers in such manner as the Chief Inspector considers appropriate on any matter relating to—
(a) the conditions in prisons,
(b) the treatment of prisoners, or
(c) the exercise of the functions of prison monitoring co-ordinators or independent prison monitors.
(7) For the purpose of exercising any of the Chief Inspector’s functions, the Chief Inspector may, without prior notice—
(a) visit any prison, and access any part of a prison, in Scotland,
(b) speak in private with any prison monitoring co-ordinator, independent prison monitor, prisoner, visitor, prison officer or other person working at the prison, who agrees to speak to the Chief Inspector, or
(c) examine any prison records, other than personnel records.
(8) The Scottish Ministers are to pay the Chief Inspector such salary and allowances, and such other sums in respect of the exercise of the Chief Inspector’s functions, as the Scottish Ministers consider appropriate.
(9) The Scottish Ministers may provide staff, property or services to the Chief Inspector to assist the Chief Inspector in the exercise of the Chief Inspector’s functions.
(1) There are to be three (or such higher number as the Scottish Ministers determine) prison monitoring co-ordinators.
(2) It is for the Scottish Ministers to appoint prison monitoring co-ordinators.
(3) The Scottish Ministers must consult the Chief Inspector before—
(a) making a determination under subsection (1), or
(b) making an appointment under subsection (2).
(4) The Scottish Ministers may prescribe in regulations the procedures which must be complied with in making appointments under subsection (2).
(5) Regulations under subsection (4) may in particular make provision for or in connection with—
(a) persons or organisations who must be consulted, in addition to the Chief Inspector, prior to appointments being made,
(b) terms and conditions of appointment,
(c) periods of appointment, and
(d) termination of appointments.
(6) The Chief Inspector must assign prison monitoring co-ordinators to prisons so that each prison has an assigned prison monitoring co-ordinator.
(7) A prison monitoring co-ordinator may be assigned to—
(a) prisons within a particular area,
(b) particular prisons, or
(c) all prisons.
7B The functions of prison monitoring co-ordinators
(1) The function of a prison monitoring co-ordinator is to ensure the effective monitoring of each prison to which the prison monitoring co-ordinator is assigned.
(2) In pursuance of that function, a prison monitoring co-ordinator must—
(a) appoint independent prison monitors in such numbers as the Chief Inspector considers appropriate,
(b) assign each independent prison monitor to a prison to which the prison monitoring co-ordinator is assigned,
(c) arrange for each independent prison monitor to visit the prison—
(i) in accordance with a rota of visits prepared by the prison monitoring co-ordinator and agreed between the prison monitoring co-ordinator, the independent prison monitors assigned to the prison and the governor of the prison, and
(ii) at such other times, without appointment with the governor of the prison, as may be agreed between the prison monitoring co-ordinator and the independent prison monitor,
(d) arrange for specific matters in relation to a prison, which have been referred to the prison monitoring co-ordinator by the Chief Inspector, to be investigated by one or more independent prison monitors assigned to the prison,
(e) provide such support to independent prison monitors appointed by the prison monitoring co-ordinator as the prison monitoring co-ordinator considers appropriate to assist those independent prison monitors in carrying out their duties under section 7D,
(f) arrange such training for independent prison monitors appointed by the prison monitoring co-ordinator as the prison monitoring co-ordinator considers appropriate,
(g) arrange a meeting with independent prison monitors assigned to a prison at least once every six months at which no fewer than two thirds of all independent prison monitors assigned to that prison must be in attendance,
(h) evaluate the performance of each independent prison monitor appointed by the prison monitoring co-ordinator,
(i) visit each prison to which the prison monitoring co-ordinator is assigned as instructed by the Chief Inspector, and
(j) maintain a record of the date and time of each visit to a prison in accordance with paragraph (i) and the matters considered during each visit.
(3) The rota prepared by the prison monitoring co-ordinator under subsection (2)(c)—
(a) must provide for at least one independent prison monitor to visit the prison at least once every week, and
(b) may provide for independent prison monitors to visit the prison in groups or individually.
(4) In exercising the prison monitoring co-ordinator’s functions, the prison monitoring co-ordinator must—
(a) comply with any instructions issued by the Chief Inspector under section 7(2)(e), and
(b) have regard to any guidance published by the Chief Inspector under section 7(2)(f).
(5) For the purpose of exercising any of the prison monitoring co-ordinator’s functions, a prison monitoring co-ordinator may, without prior notice—
(a) visit any prison, and access any part of a prison, to which the prison monitoring co-ordinator is assigned,
(b) speak in private with any independent prison monitor, prisoner, visitor, prison officer or other person working at the prison, who agrees to speak to the prison monitoring co-ordinator, or
(c) examine any prison records, other than—
(i) personnel records, or
(ii) any documents containing information, the disclosure of which would, in the opinion of the governor of the prison, have implications for the security of the prison.
(6) A prison monitoring co-ordinator must report to the Chief Inspector—
(a) in relation to any specific matters investigated by independent prison monitors in pursuance of arrangements made by the prison monitoring co-ordinator under subsection (2)(d),
(b) annually in relation to—
(i) the monitoring of each prison to which the prison monitoring co-ordinator is assigned, and
(ii) the conditions, and the treatment of prisoners, in each prison to which the prison monitoring co-ordinator is assigned, and
(c) otherwise in relation to such matters as the Chief Inspector may require.
(7) In relation to a report made under subsection (6)(b)—
(a) the report is to be in such form and made by such date as the Chief Inspector may direct, and
(b) different forms and different dates may be directed in relation to reports made under subsection (6)(b)(i) and (ii).
(8) A prison monitoring co-ordinator may notify the governor of a prison to which the prison monitoring co-ordinator is assigned, and the Chief Inspector, of any matter relating to the prison, or prisoners detained in the prison, which the prison monitoring co-ordinator considers appropriate.
(9) The Scottish Ministers are to pay prison monitoring co-ordinators such salary and allowances as the Scottish Ministers consider appropriate.
(1) Subject to subsections (2) and (3), independent prison monitors are to be appointed on such terms and conditions as the Chief Inspector may determine.
(2) A person who has been appointed as an independent prison monitor may be re-appointed for further periods.
(3) A person may not be an independent prison monitor for a period (whether or not consecutive) of more than 9 years.
(1) An independent prison monitor must, in relation to the prison to which the independent prison monitor is assigned—
(a) visit the prison in accordance with arrangements made under section 7B(2)(c),
(b) monitor the conditions in the prison and the treatment of prisoners,
(c) monitor the arrangements operated by the prison for the temporary release of prisoners in accordance with rules made under section 39,
(d) investigate specific matters which have been referred to the independent prison monitor by the prison monitoring co-ordinator,
(e) notify the governor of the prison and the prison monitoring co-ordinator of any matters relating to the conditions in the prison or the treatment of prisoners which the independent prison monitor considers appropriate,
(f) where, in the opinion of the independent prison monitor, a matter notified to the governor of the prison under paragraph (e) has not been remedied to the satisfaction of the independent prison monitor, inform the governor and the prison monitoring co-ordinator, and
(g) maintain a record of the date and time of each visit to the prison and the matters considered during each visit.
(2) Without prejudice to the duty in subsection (1)(a), an independent prison monitor may also visit the prison without prior notice at such times as the independent prison monitor considers necessary.
(3) An independent prison monitor may investigate any matter referred to the independent prison monitor by a prisoner.
(4) Rules made under section 39 may make provision for assistance to be provided by independent prison monitors to prisoners in any complaints process provided for under those rules.
(5) In exercising the independent prison monitor’s functions, an independent prison monitor must—
(a) comply with any instructions issued by the prison monitoring co-ordinator,
(b) attend all training arranged by the prison monitoring co-ordinator under section 7B(2)(f), and
(c) have regard to any guidance on the monitoring of prisons published by the Chief Inspector under section 7(2)(f).
(6) For the purpose of exercising any of the independent prison monitor’s functions, an independent prison monitor may, without prior notice—
(a) visit any prison, and access any part of a prison, to which the independent prison monitor is assigned,
(b) speak in private with any prisoner, visitor, prison officer or other person working at the prison, who agrees to speak to the independent prison monitor, or
(c) examine any prison records other than—
(i) personnel records, or
(ii) any documents containing information, the disclosure of which would, in the opinion of the governor of the prison, have implications for the security of the prison.
(7) An independent prison monitor must report to the prison monitoring co-ordinator—
(a) in relation to any specific matters investigated by the independent prison monitor under subsection (1)(d), and
(b) otherwise in relation to such matters, and in such form and manner, as the prison monitoring co-ordinator may instruct.
(8) The Scottish Ministers may pay each independent prison monitor such sums in respect of travel and subsistence expenses as the Scottish Ministers consider appropriate.
(9) References in this section to “the prison monitoring co-ordinator” are references to the prison monitoring co-ordinator assigned to the prison in question.
7E Duty of the governor to assist with inspection and monitoring
The governor of a prison must ensure that the Chief Inspector, prison monitoring co-ordinators and independent prison monitors are provided with such assistance as is necessary to allow them to exercise their functions under this Act in relation to the prison.
(1) The Chief Inspector must establish a prison monitoring advisory group.
(2) The group is to comprise—
(a) the Chief Inspector,
(b) each of the prison monitoring co-ordinators,
(c) at least three independent prison monitors, and
(d) such other persons as the Chief Inspector considers appropriate.
(3) Persons appointed to the prison monitoring advisory group under subsection (2)(c) or (d) are to be appointed for such period as the Chief Inspector considers appropriate (and may be re-appointed).
(4) The functions of the prison monitoring advisory group are to—
(a) keep the effectiveness of prison monitoring under review,
(b) contribute to the preparation of the guidance published by the Chief Inspector under section 7(2)(f),
(c) keep the guidance published by the Chief Inspector under review,
(d) keep the training arrangements for independent prison monitors under review, and
(e) make recommendations for improvement in respect of any of the matters referred to in paragraphs (a) to (d).
(1) The Scottish Ministers must make arrangements to ensure that members of the SPT may—
(a) visit prisoners,
(b) access information relevant to the treatment of prisoners and the conditions in which they are detained,
(c) monitor the conditions in prisons and the treatment of prisoners, and
(d) monitor the arrangements operated by prisons for the temporary release of prisoners in accordance with rules made under section 39.
(2) The arrangements may, in particular, authorise members of the SPT to—
(a) access, without prior notice, any prison (accompanied by such experts as the members think fit),
(b) examine prison records relating to the detention of prisoners,
(c) meet any prisoners in private to discuss their treatment while detained and the conditions in which they are detained,
(d) inspect the conditions in which prisoners are detained (including cell accommodation, washing and toilet facilities and facilities for the provision of food), and
(e) meet such other persons as the members think may have information relevant to the treatment of prisoners and the conditions in which they are detained.
(3) The Scottish Ministers must keep the arrangements under review and revise them as they think fit.
(1) Where in any prison the number of prisoners who belong to a religious denomination other than the Church of Scotland is such as in the opinion of the Secretary of State to require the appointment of a minister of that denomination, the Secretary of State may appoint such a minister to that prison.
(2) The Secretary of State may pay a minister appointed under the foregoing subsection such remuneration as he thinks reasonable.
(3) The Secretary of State may allow a minister of any denomination other than the Church of Scotland to visit prisoners of his denomination in a prison to which no minister of that denomination has been appointed under this section.
(4) No prisoner shall be visited against his will by such a minister as is mentioned in the last foregoing subsection; but every prisoner not belonging to the Church of Scotland shall be allowed, in accordance with the arrangements in force in the prison in which he is confined, to attend chapel or to be visited by the chaplain.
(5) The governor of a prison shall on the reception of each prisoner record the religious denomination to which the prisoner declares himself to belong, and shall give to any minister who under this section is appointed to the prison or permitted to visit prisoners therein a list of the prisoners who have declared themselves to belong to his denomination; and the minister shall not be permitted to visit any other prisoners.
(1) A prisoner may be lawfully confined in any prison.
(2) Prisoners shall be committed to such prisons as the Secretary of State may from time to time direct, and may be moved by the Secretary of State from any prison to any other prison.
(3) The foregoing provisions of this section are without prejudice to section 11 of this Act and section 241 of the 1975 Act (transfer of prisoner in connection with hearing of appeal).
11 Removal of prisoners for judicial and other purposes.
(1) Rules under section 39 of this Act may provide in what manner an appellant within the meaning of section 132 of the 1995 Act, when in custody, is to be taken to, kept in custody at, and brought back from, any place at which he is entitled to be present for the purposes of that Act, or any place to which the High Court of Justiciary or any judge thereof, may order him to be taken for the purposes of any proceedings of that court.
(2) The Secretary of State may, if he is satisfied that a person detained in Scotland in a prison requires medical or surgical treatment of any description, direct him to be taken to a hospital or other suitable place for the purpose of the treatment.
(3) Where any person is directed under the last foregoing subsection to be taken to any place he shall, unless the Secretary of State otherwise directs, be kept in custody while being so taken, while at that place, and while being taken back to the prison in which he is required in accordance with law to be detained.
(4) The governor or any officer of a prison may execute any warrant issued by the High Court of Justiciary for the removal of a prisoner in that prison to any other prison for the purpose of trial before that court.
(5) The Secretary of State may make regulations as to the mode in which and the officers by whom warrants issued under the last foregoing subsection shall be executed.
Rules under section 39 of this Act may provide for the measuring and photographing of prisoners and . . . may prescribe the time or times at which, and the manner and dress in which prisoners shall be measured and photographed, and the number of copies of the measurements and photographs of each prisoner which shall be made and the persons to whom they shall be sent.
Without prejudice to section 295 of the Criminal Procedure (Scotland) Act 1995 (c. 46) (legal custody of persons generally), a prisoner is in legal custody—
(a) while he is confined in or being taken to or from any prison in which he may be lawfully confined; or
(b) while he is working or is, for any other reason, outside the prison in the custody or under the control of an officer of the prison , a constable (“constable” having the same meaning as it has, by virtue of paragraph 17(1) and (2) of Schedule 1 to the Crime (Sentences) Act 1997 (c. 43), in section 40(1) of this Act) or a police custody and security officer ; or
(c) while he is being taken to any place to which he is required or authorised by or under this Act to be taken; or
(d) while he is kept in custody in pursuance of such requirement or authorisation.
(1) The Secretary of State, on the application of the Scottish Police Authority, may from time to time by rules under section 39 of this Act declare that any police cells or other premises in the possession of the Scottish Police Authority shall be a legal prison for the detention of prisoners before, during or after trial for any period not exceeding 30 days. Any such police cells or other premises are hereinafter referred to as legalised police cells.
(2) Any person charged with or convicted of any crime or offence committed within the area of a councilwho might have been lawfully confined in a prison situated therein may be lawfully confined in any legalised police cells situated in that . . . area for such period as aforesaid.
(3) The maintenance of prisoners confined in any legalised police cells shall be deemed to be the maintenance of prisoners under this Act:
Provided that the Scottish Police Authority shall not be entitled to any payment for the use of the legalised police cells or for services rendered by any of their officers in connection with the detention or removal of the prisoners so confined.
(4) The Scottish Police Authority , notwithstanding anything in this section, shall at all times have a prior claim to the uninterrupted use of any legalised police cells ....
(5) For the purposes of this section the Scottish Police Authority and all persons in their employment shall be subject to the provisions of this Act and any rules made thereunder.
(6) It shall be the duty of the Secretary of State to make any arrangements required for the removal of any prisoners confined in legalised police cells in the areas of the councils for Orkney Islands and Shetland Islands.
(7) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
(8) For the purposes of section 39 of this Act, legalised police cells shall be deemed to be prisons.
(9) In this section, “ council ” means a council constituted under section 2 of the Local Government etc. (Scotland) Act 1994.
(1) A sheriff , summary sheriff or justice of the peace may visit any prison within his jurisdiction or in which a prisoner is confined for any offence committed within his jurisdiction, and may examine the condition of the prison and of the prisoners therein and enter in the visitors book to be kept by the governor of the prison any observations on the condition of the prison or on any abuses therein.
(2) Nothing in the foregoing subsection shall authorise a sheriff , summary sheriff or justice of the peace to communicate with any prisoner except on the subject of his treatment in the prison nor to visit any prisoner under sentence of death.
(3) It shall be the duty of the governor of a prison to draw the attention of an independent prison monitor to any entry in the visitors book made in pursuance of this sectionat the next time such a monitor visits the prison.
(1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
(2) A prisoner discharged from a prison situated outside the . . . area in which he was convicted shall be entitled to be taken back to that . . . area at the expense of the Secretary of State.
(3) In this section, “area” means the area of a council constituted under section 2 of the Local Government etc. (Scotland) Act 1994.
(1) When a prisoner is discharged from prison the Secretary of State may provide him with the means of returning to his home by causing his fare to be paid or in any other convenient manner.
(2) The Secretary of State may make such payments to or in respect of persons released or about to be released from prisons as he may, with the consent of the Treasury, determine.
(1) The Secretary of State may provide—
(a) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
(b) young offenders institutions, that is to say, places in which offenders sentenced to detention in a young persons not less than 18 but under 21 years of age—
(i) sentenced to detention in a young offenders institution, or
(ii) remanded or committed in custody for trial or sentence,
may be kept.
(2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
(3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
(4) Subject to any exception or modification in any provision of this Act and unless the context otherwise requires, this Act applies to ... young offenders institutions and to persons detained in such ... institutions in the same manner as it applies to prisons and prisoners.
(5) Section 11(4) and (5) does not apply to young offenders institutions.
(6) Sections 1 to 3, 4 to 6, 9, 10, 11(1), 13 to 17, 33A to 37 and 41 to 41D apply to ... young offenders institutions and to persons detained there in the same manner as those provisions apply to prisons and prisoners subject to such adaptations and modifications as may be made by rules made under section 39.
20 Temporary detention of persons liable to detention in young offenders institution ....
A person who is required to be taken to a young offenders institution ... may, until arrangements can be made for taking him there, be temporarily detained elsewhere.
(1) Subject to section 21 of this Act, an offender sentenced to detention in a young offenders institution shall be detained in such an institution unless a direction under subsection (2) below is in force in relation to him.
(2) The Secretary of State may from time to time direct that an offender sentenced to detention in a young offenders institution shall be detained in a prison ... instead of in a young offenders institution ....
(3) Where an offender is detained in a prison ... by virtue of subsection (2) above, any rules under section 39 of this Act which apply in relation to persons detained in that place shall apply to that offender; but subject to the foregoing and to subsection (4) below, the provisions of the 1975 Act, the Prisoners and Criminal Proceedings (Scotland) Act 1993 and this Act relating to the treatment and supervision of persons sentenced to detention in a young offenders institution shall continue to apply to the offender.
(4) Where an offender referred to in subsection (3) above attains the age of 21 years, subsection (3) of section 21 of this Act shall apply to him as if he had been transferred to prison under that section.
21 Transfer to prison of persons over 21, and maximum age for detention in young offenders institution.
(1) Subject to the provisions of this section but without prejudice to section 20A(2) of this Act, where a person serving a sentence of detention in a young offenders institution has attained the age of 21 years, the Secretary of State shall have power to transfer him to prison.
(2) No person shall be detained in a young offenders institution after he has attained the age of 23 years, and accordingly any person so detained shall, not later than the day immediately preceding his twenty-third birthday, be transferred to prison.
(3) Where a person has been transferred to prison under this section, he shall be treated for the purpose of his serving the unexpired part of his sentence and of his supervision on release as if the sentence of detention passed upon him were a sentence of imprisonment for a like term, and the provisions of the 1995 Act , the Prisoners and Criminal Proceedings (Scotland) Act 1993 and this Act relating to the treatment and supervision of prisoners shall apply to him accordingly:
. . .
(1) Where a prisoner, who has been released on licence under section 22 of this Act as respects a sentence of imprisonment—
(a) continues, by virtue of any enactment or rule of law, to be detained in prison notwithstanding such release; or
(b) is, by virtue of any enactment or rule of law, detained in prison subsequent to the date of such release but while the licence remains in force,
the conditions in the licence, other than those mentioned in subsection (3) below, shall by virtue of such detention be suspended.
(2) The suspension of the conditions shall have effect for so long as—
(a) the prisoner is so detained; and
(b) the licence remains in force.
(3) The conditions are any conditions, however expressed, requiring the prisoner—
(a) to be of good behaviour and to keep the peace; or
(b) not to contact a named person or class of persons (or not to do so unless with the approval of a person specified in the licence by virtue of section 22(7) of this Act).
(4) The Scottish Ministers may by order amend subsection (3) above by—
(a) adding to the conditions mentioned in that subsection such other conditions as they consider appropriate; or
(b) cancelling or varying a condition for the time being mentioned in that subsection.