Skip to content

Commit 7f76f4f

Browse files
committed
Merge remote-tracking branch 'origin/hotfix-19.4' into develop
2 parents 2dcb1dc + 7fedaff commit 7f76f4f

1 file changed

Lines changed: 48 additions & 0 deletions

File tree

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
// <copyright>
2+
// Copyright by the Spark Development Network
3+
//
4+
// Licensed under the Rock Community License (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
//
8+
// http://www.rockrms.com/license
9+
//
10+
// Unless required by applicable law or agreed to in writing, software
11+
// distributed under the License is distributed on an "AS IS" BASIS,
12+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
// See the License for the specific language governing permissions and
14+
// limitations under the License.
15+
// </copyright>
16+
//
17+
18+
using System;
19+
20+
namespace Rock.Plugin.HotFixes
21+
{
22+
/// <summary>
23+
/// Corrects the security (Auth) records for the FinancialTransactionDetail model to allow
24+
/// Financial Admins and Financial Workers to match the FinancialTransaction model so that
25+
/// they can use the ModifyEntity Lava commands. Fix for issue #6886.
26+
/// </summary>
27+
/// <seealso cref="Rock.Plugin.Migration" />
28+
[MigrationNumber( 305, "19.3" )]
29+
public class FixFinancialTransactionDetailAuth6886 : Migration
30+
{
31+
/// <summary>
32+
/// Operations to be performed during the upgrade process.
33+
/// </summary>
34+
public override void Up()
35+
{
36+
RockMigrationHelper.AddSecurityAuthForEntityType( "Rock.Model.FinancialTransactionDetail", 1, "Edit", true, "2539CF5D-E2CE-4706-8BBF-4A9DF8E763E9", 0, "20FF56BB-D406-4779-AFDD-7886CD85EAE0" ); // EntityType:Rock.Model.FinancialTransactionDetail Group: 2539CF5D-E2CE-4706-8BBF-4A9DF8E763E9 ( RSR - Finance Worker ),
37+
RockMigrationHelper.AddSecurityAuthForEntityType( "Rock.Model.FinancialTransactionDetail", 0, "Edit", true, "6246A7EF-B7A3-4C8C-B1E4-3FF114B84559", 0, "049908E0-50DE-4137-9000-C0DBA9B86A5D" ); // EntityType:Rock.Model.FinancialTransactionDetail Group: 6246A7EF-B7A3-4C8C-B1E4-3FF114B84559 ( RSR - Finance Administration ),
38+
}
39+
40+
/// <summary>
41+
/// Operations to be performed during the downgrade process.
42+
/// </summary>
43+
public override void Down()
44+
{
45+
//
46+
}
47+
}
48+
}

0 commit comments

Comments
 (0)