From 7b4c9b0e59bd7fe2788b93cea4bcd9679a5ae1a0 Mon Sep 17 00:00:00 2001 From: Jake Fink Date: Fri, 20 Jan 2023 11:36:17 -0500 Subject: [PATCH] [EC-943] remove deprecated permissions (#2578) --- src/Core/Models/Data/Permissions.cs | 4 ---- test/Core.Test/Models/PermissionsTests.cs | 2 -- 2 files changed, 6 deletions(-) diff --git a/src/Core/Models/Data/Permissions.cs b/src/Core/Models/Data/Permissions.cs index 49a7e37f08..4d1ef3402c 100644 --- a/src/Core/Models/Data/Permissions.cs +++ b/src/Core/Models/Data/Permissions.cs @@ -7,13 +7,9 @@ public class Permissions public bool AccessEventLogs { get; set; } public bool AccessImportExport { get; set; } public bool AccessReports { get; set; } - [Obsolete("This permission exists for client backwards-compatibility. It should not be used to determine permissions in this repository", true)] - public bool ManageAllCollections => CreateNewCollections && EditAnyCollection && DeleteAnyCollection; public bool CreateNewCollections { get; set; } public bool EditAnyCollection { get; set; } public bool DeleteAnyCollection { get; set; } - [Obsolete("This permission exists for client backwards-compatibility. It should not be used to determine permissions in this repository", true)] - public bool ManageAssignedCollections => EditAssignedCollections && DeleteAssignedCollections; public bool EditAssignedCollections { get; set; } public bool DeleteAssignedCollections { get; set; } public bool ManageGroups { get; set; } diff --git a/test/Core.Test/Models/PermissionsTests.cs b/test/Core.Test/Models/PermissionsTests.cs index 76b88f6ff9..f663cd17a8 100644 --- a/test/Core.Test/Models/PermissionsTests.cs +++ b/test/Core.Test/Models/PermissionsTests.cs @@ -12,11 +12,9 @@ public class PermissionsTests "\"accessEventLogs\": false,", "\"accessImportExport\": false,", "\"accessReports\": false,", - "\"manageAllCollections\": true,", // exists for backwards compatibility "\"createNewCollections\": true,", "\"editAnyCollection\": true,", "\"deleteAnyCollection\": true,", - "\"manageAssignedCollections\": false,", // exists for backwards compatibility "\"editAssignedCollections\": false,", "\"deleteAssignedCollections\": false,", "\"manageGroups\": false,",