Skip to content

Commit 0bf8877

Browse files
committed
Merge branch 'master' into Develop/Features/TD-937-SuperAdminCourseUsageReport
2 parents e0433d5 + 630eaa0 commit 0bf8877

File tree

28 files changed

+343
-194
lines changed

28 files changed

+343
-194
lines changed

DigitalLearningSolutions.Data.Migrations/2023080911401334_updateTermsAndConditions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33

44
namespace DigitalLearningSolutions.Data.Migrations
55
{
6-
[Migration(202308181140)]
6+
[Migration(202308221452)]
77
public class UpdateTermsAndConditions : Migration
88
{
99
public override void Up()
1010
{
11-
var TermsAndConditions = Properties.Resources.TermsAndConditions;
11+
var TermsAndConditions = Properties.Resources.TermsConditions;
1212

1313
Execute.Sql(
1414
@"UPDATE Config SET UpdatedDate =GETDATE() ,ConfigText =N'" + TermsAndConditions + "' " +

DigitalLearningSolutions.Data.Migrations/Properties/Resources.Designer.cs

Lines changed: 12 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

DigitalLearningSolutions.Data.Migrations/Properties/Resources.resx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -290,15 +290,15 @@
290290
<value>..\Scripts\TD-2094-GetActivitiesForDelegateEnrolmentDelegateStatusPropertyTweak_down.sql;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value>
291291
</data>
292292
<data name="TermsAndConditionsOldrecord" type="System.Resources.ResXFileRef, System.Windows.Forms">
293-
<value>..\Resources\TermsAndConditionsOldrecord.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
293+
<value>..\Resources\TermsAndConditionsOldrecord.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value>
294294
</data>
295295
<data name="TD_1766_GetCompletedCoursesForCandidateTweak_down" type="System.Resources.ResXFileRef, System.Windows.Forms">
296296
<value>..\Scripts\TD-1766-GetCompletedCoursesForCandidateTweak_down.sql;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value>
297297
</data>
298298
<data name="TD_1766_GetCompletedCoursesForCandidateTweak" type="System.Resources.ResXFileRef, System.Windows.Forms">
299299
<value>..\Scripts\TD-1766-GetCompletedCoursesForCandidateTweak.sql;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value>
300300
</data>
301-
<data name="TermsAndConditions" type="System.Resources.ResXFileRef, System.Windows.Forms">
302-
<value>..\Resources\TermsAndConditions.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8</value>
301+
<data name="TermsConditions" type="System.Resources.ResXFileRef, System.Windows.Forms">
302+
<value>..\Resources\TermsConditions.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value>
303303
</data>
304-
</root>
304+
</root>

DigitalLearningSolutions.Data.Migrations/Resources/TermsAndConditions.txt renamed to DigitalLearningSolutions.Data.Migrations/Resources/TermsConditions.txt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
<h1 class="nhsuk-u-text-align-centre nhsuk-heading-xl">TERMS AND CONDITIONS</h1>
2-
<h1 class="nhsuk-u-text-align-centre nhsuk-heading-xl">PLEASE READ THESE TERMS AND CONDITIONS CAREFULLY BEFORE USING THE PLATFORM. YOUR ATTENTION IS PARTICULARLY DRAWN TO THE PROVISIONS OF CLAUSE 14 (OUR RESPONSIBILITY FOR LOSS OR DAMAGE SUFFERED BY YOU) AND CLAUSE 15 (INDEMNITIES).</h1>
1+
<h1 class="policy-text-center">TERMS AND CONDITIONS</h1>
2+
<h1 class="policy-text-center">PLEASE READ THESE TERMS AND CONDITIONS CAREFULLY BEFORE USING THE PLATFORM. YOUR ATTENTION IS PARTICULARLY DRAWN TO THE PROVISIONS OF CLAUSE 14 (OUR RESPONSIBILITY FOR LOSS OR DAMAGE SUFFERED BY YOU) AND CLAUSE 15 (INDEMNITIES).</h1>
33
<ol class="custom-ordered-list nhsuk-u-padding-left-0">
44

55

@@ -13,10 +13,10 @@
1313
</ol>
1414
</li>
1515
<li>
16-
These terms of use (<strong>Terms</strong>) set out the rules for using each of our following platforms (each being a <strong>Platform</strong>):
16+
Each Platform is a collection of online learning (<strong>elearning</strong>)and educational resources (<strong>Content</strong>) which is:
1717
<ol class="nhsuk-u-padding-top-2">
1818
<li>in respect of elfh Hub: provided free of charge as part of our elearning for healthcare programme to support patient care by providing elearning to educate and train the health and social care workforce. The Content is developed by us in partnership with NHS, third sector and professional bodies;</li>
19-
<li>in respect of DLS: provided to aid registered health and social care organisations (Centres) with the training, development and assessment of competence of their staff. The Platform continues to support existing locally-developed learning;</li>
19+
<li>in respect of DLS: provided to aid registered health and social care organisations (<strong>Centres</strong>) with the training, development and assessment of competence of their staff. The Platform continues to support existing locally-developed learning;</li>
2020
<li>in respect of the Learning Hub: provided free of charge to educate and train the health and social care workforce. The Content is uploaded, shared and contributed by the Platform’s user community. Users can access, contribute, share and rate digital resources including video, audio, images, web links, documents and articles.</li>
2121
</ol>
2222
</li>
@@ -63,11 +63,11 @@ If you find Content or links that you think should not be on a Platform or have
6363
<li>
6464
These Terms incorporate the following which also apply to your use of any Platform:
6565
<ol class="nhsuk-u-padding-top-2">
66-
<li>our Privacy Policy &nbsp;<a class="policy-word-break" href="https://www.dls.nhs.uk/v2/LearningSolutions/Terms">Terms of Use </a> (see further under clause 12); and</li>
66+
<li>our Privacy Policy &nbsp;<a class="policy-word-break" href="https://www.dls.nhs.uk/v2/LearningSolutions/PrivacyNotice">PRIVACY POLICY</a> (see further under clause 12); and</li>
6767
<li>our Acceptable Use Policy &nbsp;<a class="policy-word-break" href="https://www.dls.nhs.uk/v2/LearningSolutions/AcceptableUsePolicy">ACCEPTABLE USE POLICY </a> with which you agree to comply with at all times.</li>
6868
</ol>
6969
</li>
70-
<li>We may amend these Terms from time to time without notice. Any change will be effective in respect of a Platform immediately upon the revised Terms being posted on that Platform. Every time you wish to use a Platform, please check these Terms to ensure you understand the Terms that apply at that time. You must stop using a Platform and deactivate your Account (as defined in clause 4) if you do not agree to such change. Continued use of a Platform after a change has been made is your acceptance of the change. These Terms were most recently updated on 16 Aug 2023 .s </li>
70+
<li>We may amend these Terms from time to time without notice. Any change will be effective in respect of a Platform immediately upon the revised Terms being posted on that Platform. Every time you wish to use a Platform, please check these Terms to ensure you understand the Terms that apply at that time. You must stop using a Platform and deactivate your Account (as defined in clause 4) if you do not agree to such change. Continued use of a Platform after a change has been made is your acceptance of the change. These Terms were most recently updated on '+convert(varchar, getdate(), 6)+' </li>
7171
</ol>
7272
</li>
7373

@@ -109,10 +109,10 @@ These Terms incorporate the following which also apply to your use of any Platfo
109109
</ol>
110110
</li>
111111

112-
<li class="h2 nhsuk-heading-l nhsuk-u-font-weight-bold nhsuk-u-padding-bottom-2 nhsuk-u-margin-0">YOUR ACCOUNT
112+
<li class="h2 nhsuk-heading-l nhsuk-u-font-weight-bold nhsuk-u-padding-bottom-2 nhsuk-u-margin-0">USE OF A PLATFORM
113113
<ol class="h4 nhsuk-body-m nhsuk-u-padding-top-4 nhsuk-u-padding-left-0">
114114
<li>You may only use a Platform in accordance with our Acceptable Use Policy.</li>
115-
<li>The Platforms and their Content are only targeted to, and intended for use by, people residing in the United Kingdom or British Overseas Territories (Permitted Territories). We do not represent that Content available on or through any Platform is appropriate for use or available in other locations. By continuing to access, view or make use of a Platform, you hereby warrant and represent to us that you are located in a Permitted Territory. If you are not located in a Permitted Territory, you must immediately discontinue use of the Platforms.</li>
115+
<li>The Platforms and their Content are only targeted to, and intended for use by, people residing in the United Kingdom or British Overseas Territories (<strong>Permitted Territories</strong>). We do not represent that Content available on or through any Platform is appropriate for use or available in other locations. By continuing to access, view or make use of a Platform, you hereby warrant and represent to us that you are located in a Permitted Territory. If you are not located in a Permitted Territory, you must immediately discontinue use of the Platforms.</li>
116116
<li>Save in respect of elfh Hub and Content on the Learning Hub, the Platforms and Content are provided ''as is''. We make no representation or endorsement of satisfactory quality, fitness for a particular purpose, non-infringement, compatibility, security and accuracy of the Content.</li>
117117
<li>While reasonable professional care has been taken in developing the Content (excluding any Third Party Content (as defined in clause 8.1) and any Contributions (as defined in clause 7.1)), we make no warranties concerning the correctness or completeness of the Content. Although we make reasonable efforts to update the Content, we make no representations, warranties or guarantees, whether express or implied, that the Content is up to date.</li>
118118
</ol>
@@ -136,7 +136,7 @@ These Terms incorporate the following which also apply to your use of any Platfo
136136
</ol>
137137
</li>
138138

139-
<li>In respect of the Learning Hub, when you submit a Contribution to the Platform, you must select the appropriate licence in accordance with the guidance provided at&nbsp;<a class="policy-word-break" title="admin" href="https://support.learninghub.nhs.uk/support/solutions/articles/80000986606-which-licence-should-i-select-when-contributing-a-resource-to-the-learning-hub-."> https://support.learninghub.nhs.uk/support/solutions/articles/80000986606-which-licence-should-i-select-when-contributing-a-resource-to-the-learning-hub-</a>&nbsp. Whichever licence you select, you grant the following rights in relation to that Contribution:
139+
<li>In respect of the Learning Hub, when you submit a Contribution to the Platform, you must select the appropriate licence in accordance with the guidance provided at&nbsp;<a class="policy-word-break" title="admin" href="https://support.learninghub.nhs.uk/support/solutions/articles/80000986606-which-licence-should-i-select-when-contributing-a-resource-to-the-learning-hub-"> https://support.learninghub.nhs.uk/support/solutions/articles/80000986606-which-licence-should-i-select-when-contributing-a-resource-to-the-learning-hub-.</a> Whichever licence you select, you grant the following rights in relation to that Contribution:
140140
<ol class="nhsuk-u-padding-top-2">
141141
<li>a worldwide, non-exclusive, royalty-free, transferable licence to us to use and display that Contribution on the Platform, to expire when you delete the Contribution from the Platform; and</li>
142142
<li>a worldwide, non-exclusive, royalty-free, perpetual, transferable licence for users of the Platform to use the Contribution in accordance with the functionality of the Platform.</li>
@@ -181,7 +181,7 @@ These Terms incorporate the following which also apply to your use of any Platfo
181181

182182
<li class="h2 nhsuk-heading-l nhsuk-u-font-weight-bold nhsuk-u-padding-bottom-2 nhsuk-u-margin-0">ACCESS VIA CENTRE (DLS ONLY)
183183
<ol class="h4 nhsuk-body-m nhsuk-u-padding-top-4 nhsuk-u-padding-left-0">
184-
<li>Where you are a Centre that provides access for your staff (Delegates) to a Platform, then:
184+
<li>Where you are a Centre that provides access for your staff (<strong>Delegates</strong>) to a Platform, then:
185185
<ol class="nhsuk-u-padding-top-2">
186186
<li> you must:
187187
<ol class="nhsuk-u-padding-top-2">
@@ -205,7 +205,7 @@ These Terms incorporate the following which also apply to your use of any Platfo
205205
<li>a request for change needs to be submitted and considered.</li>
206206
</ol>
207207
</li>
208-
<li>If a Platform is decommissioned and we hold any Content which was created by a Centre and/or any data which relates to elearning completed by the Delegates of a specific Centre (Data), we will provide the Data to that Centre. If you require the Data to be provided in a specific format, you must discuss this with us to determine (acting reasonably) whether this is feasible. The Data will be transferred securely and with send and receive receipts. </li>
208+
<li>If a Platform is decommissioned and we hold any Content which was created by a Centre and/or any data which relates to elearning completed by the Delegates of a specific Centre (<strong>Data</strong>), we will provide the Data to that Centre. If you require the Data to be provided in a specific format, you must discuss this with us to determine (acting reasonably) whether this is feasible. The Data will be transferred securely and with send and receive receipts. </li>
209209
<li>Where you are a Delegate, in the event that your Centre ceases to have access to a Platform, your access to a Platform may become limited or cease. </li>
210210
</ol>
211211
</li>

DigitalLearningSolutions.Data/DataServices/CentresDataService.cs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -763,8 +763,8 @@ public void UpdateCentreRoleLimits(
763763
c.CentreName,
764764
ct.ContractTypeID,
765765
ct.ContractType,
766-
ct.ServerSpaceBytesInc,
767-
ct.DelegateUploadSpace,
766+
c.ServerSpaceBytes ServerSpaceBytesInc,
767+
c.CandidateByteLimit DelegateUploadSpace,
768768
c.ContractReviewDate
769769
FROM Centres AS c
770770
INNER JOIN ContractTypes AS ct ON ct.ContractTypeID = c.ContractTypeId
@@ -776,11 +776,6 @@ FROM Centres AS c
776776
logger.LogWarning($"No centre found for centre id {centreId}");
777777
return null;
778778
}
779-
if (centre.ContractReviewDate == null)
780-
{
781-
centre.ContractReviewDate = DateTime.Now;
782-
return centre;
783-
}
784779
return centre;
785780
}
786781
public bool UpdateContractTypeandCenter(

DigitalLearningSolutions.Data/DataServices/SupervisorService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ FROM CandidateAssessmentSupervisorVerifications AS casv
554554
(SELECT COUNT(*) AS Expr1
555555
FROM SelfAssessmentResultSupervisorVerifications AS sarsv
556556
WHERE (CandidateAssessmentSupervisorID = cas.ID) AND (Verified IS NULL) AND (Superceded = 0)) AS ResultsVerificationRequests,
557-
ca.NonReportable
557+
ca.NonReportable,ca.DelegateUserID
558558
FROM CandidateAssessmentSupervisors AS cas INNER JOIN
559559
CandidateAssessments AS ca ON cas.CandidateAssessmentID = ca.ID INNER JOIN
560560
SelfAssessments AS sa ON sa.ID = ca.SelfAssessmentID INNER JOIN
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
namespace DigitalLearningSolutions.Data.Enums
2+
{
3+
public enum ViewDelegateNavigationType
4+
{
5+
PromoteToAdmin
6+
}
7+
}

0 commit comments

Comments
 (0)