Skip to content

Commit f9057e1

Browse files
committed
Permission constructor now correctly accepts objects as contextId and resourceId (in accordance with change from 1.18.0)
1 parent 7d50643 commit f9057e1

File tree

5 files changed

+11
-39
lines changed

5 files changed

+11
-39
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ obj/
33
.vs/
44
.cake-tools/
55
build/
6-
*.user
6+
*.user
7+
build-local.ps1

RELEASE_NOTES.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# RELEASE NOTES
22

3-
## [1.18.1] - 2020-11-15
3+
## [1.18.2] - 2020-11-20
4+
5+
### Fixed
6+
- Permission constructor now correctly accepts objects as contextId and resourceId (in accordance with change from 1.18.0)
7+
8+
## [1.18.1] - 2020-11-16
49

510
### Fixed
611
- fixed publishing of NuGet package symbols: now using separate snupkg for symbols

Revo.Core/Security/Permission.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ namespace Revo.Core.Security
66
{
77
public class Permission : ValueObject<Permission>
88
{
9-
public Permission(PermissionType permissionType, string resourceId, string contextId)
9+
public Permission(PermissionType permissionType, object resourceId, object contextId)
1010
{
1111
PermissionTypeId = permissionType.Id;
1212
ResourceId = resourceId;
1313
ContextId = contextId;
1414
}
1515

16-
public Permission(Guid permissionTypeId, string resourceId, string contextId)
16+
public Permission(Guid permissionTypeId, object resourceId, object contextId)
1717
{
1818
PermissionTypeId = permissionTypeId;
1919
ResourceId = resourceId;

build-local.ps1

Lines changed: 0 additions & 34 deletions
This file was deleted.

build.cake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ if (Version == null)
9292
}
9393
else
9494
{
95-
versionSuffix += $"-local{DateTime.Now.ToString("yyMMdd")}";
95+
versionSuffix += $"-local{DateTime.Now.ToString("yyMMdd-HHmmss")}";
9696
}
9797

9898
Version = $"{versionPrefix}{versionSuffix}";

0 commit comments

Comments
 (0)