Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Core/Models/Permissions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ public static class Permissions

public const string AUTO_TESTS_ONLY_IsEntriesHardDeleteAllowed = "AUTO_TESTS_ONLY_IsEntriesHardDeleteAllowed";
public const string CanManagePersonalTimeTracker = "CanManagePersonalTimeTracker";
public const string CanViewAllTimeTrackerEntries = "CanViewAllTimeTrackerEntries";
public const string CanViewAllProjects = "CanViewAllProjects";

public const string CanViewInvoices = "CanViewInvoices";

Expand Down
2 changes: 2 additions & 0 deletions DataAccess/Mapping/MappingData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ internal static class MappingData
new Permission(Permissions.CanViewItems),
new Permission(Permissions.AUTO_TESTS_ONLY_IsEntriesHardDeleteAllowed),
new Permission(Permissions.CanManagePersonalTimeTracker),
new Permission(Permissions.CanViewAllTimeTrackerEntries),
new Permission(Permissions.CanViewAllProjects),
new Permission(Permissions.CanViewInvoices),
};

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace UserManagementService.DataAccess.Migrations
{
public partial class AddProjectsAndAllTimeEntriesPermissions : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.UpdateData(
table: "Roles",

Check warning on line 13 in DataAccess/Migrations/20260325091144_AddProjectsAndAllTimeEntriesPermissions.cs

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Define a constant instead of using this literal 'Roles' 4 times.

See more on https://sonarcloud.io/project/issues?id=TourmalineCore_InnerCircle.AccountsApi&issues=AZ0kTEqOF52WU-U22whb&open=AZ0kTEqOF52WU-U22whb&pullRequest=79
keyColumn: "Id",
keyValue: 1L,
column: "Permissions",

Check warning on line 16 in DataAccess/Migrations/20260325091144_AddProjectsAndAllTimeEntriesPermissions.cs

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Define a constant instead of using this literal 'Permissions' 4 times.

See more on https://sonarcloud.io/project/issues?id=TourmalineCore_InnerCircle.AccountsApi&issues=AZ0kTEqOF52WU-U22whc&open=AZ0kTEqOF52WU-U22whc&pullRequest=79
value: new[] { "ViewPersonalProfile", "ViewContacts", "ViewSalaryAndDocumentsData", "EditFullEmployeesData", "AccessAnalyticalForecastsPage", "ViewAccounts", "ManageAccounts", "ViewRoles", "ManageRoles", "CanRequestCompensations", "CanManageCompensations", "CanManageDocuments", "CanManageTenants", "IsTenantsHardDeleteAllowed", "IsAccountsHardDeleteAllowed", "IsCompensationsHardDeleteAllowed", "CanViewBooks", "CanManageBooks", "IsBooksHardDeleteAllowed", "AUTO_TESTS_ONLY_IsSetUserPasswordBypassingEmailConfirmationAllowed", "AUTO_TESTS_ONLY_IsItemTypesHardDeleteAllowed", "CanManageItemsTypes", "CanViewItemsTypes", "AUTO_TESTS_ONLY_IsItemsHardDeleteAllowed", "CanManageItems", "CanViewItems", "AUTO_TESTS_ONLY_IsEntriesHardDeleteAllowed", "CanManagePersonalTimeTracker", "CanViewAllTimeTrackerEntries", "CanViewAllProjects", "CanViewInvoices" });

Check warning on line 17 in DataAccess/Migrations/20260325091144_AddProjectsAndAllTimeEntriesPermissions.cs

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Define a constant instead of using this literal 'ViewRoles' 4 times.

See more on https://sonarcloud.io/project/issues?id=TourmalineCore_InnerCircle.AccountsApi&issues=AZ0kTEqOF52WU-U22whk&open=AZ0kTEqOF52WU-U22whk&pullRequest=79

Check warning on line 17 in DataAccess/Migrations/20260325091144_AddProjectsAndAllTimeEntriesPermissions.cs

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Define a constant instead of using this literal 'IsBooksHardDeleteAllowed' 4 times.

See more on https://sonarcloud.io/project/issues?id=TourmalineCore_InnerCircle.AccountsApi&issues=AZ0kTEqOF52WU-U22whv&open=AZ0kTEqOF52WU-U22whv&pullRequest=79

Check warning on line 17 in DataAccess/Migrations/20260325091144_AddProjectsAndAllTimeEntriesPermissions.cs

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Define a constant instead of using this literal 'AccessAnalyticalForecastsPage' 4 times.

See more on https://sonarcloud.io/project/issues?id=TourmalineCore_InnerCircle.AccountsApi&issues=AZ0kTEqOF52WU-U22whh&open=AZ0kTEqOF52WU-U22whh&pullRequest=79

Check warning on line 17 in DataAccess/Migrations/20260325091144_AddProjectsAndAllTimeEntriesPermissions.cs

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Define a constant instead of using this literal 'IsAccountsHardDeleteAllowed' 4 times.

See more on https://sonarcloud.io/project/issues?id=TourmalineCore_InnerCircle.AccountsApi&issues=AZ0kTEqOF52WU-U22whr&open=AZ0kTEqOF52WU-U22whr&pullRequest=79

Check warning on line 17 in DataAccess/Migrations/20260325091144_AddProjectsAndAllTimeEntriesPermissions.cs

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Define a constant instead of using this literal 'AUTO_TESTS_ONLY_IsSetUserPasswordBypassingEmailConfirmationAllowed' 4 times.

See more on https://sonarcloud.io/project/issues?id=TourmalineCore_InnerCircle.AccountsApi&issues=AZ0kTEqOF52WU-U22whw&open=AZ0kTEqOF52WU-U22whw&pullRequest=79

Check warning on line 17 in DataAccess/Migrations/20260325091144_AddProjectsAndAllTimeEntriesPermissions.cs

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Define a constant instead of using this literal 'ViewSalaryAndDocumentsData' 4 times.

See more on https://sonarcloud.io/project/issues?id=TourmalineCore_InnerCircle.AccountsApi&issues=AZ0kTEqOF52WU-U22whf&open=AZ0kTEqOF52WU-U22whf&pullRequest=79

Check warning on line 17 in DataAccess/Migrations/20260325091144_AddProjectsAndAllTimeEntriesPermissions.cs

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Define a constant instead of using this literal 'CanManagePersonalTimeTracker' 4 times.

See more on https://sonarcloud.io/project/issues?id=TourmalineCore_InnerCircle.AccountsApi&issues=AZ0kTEqOF52WU-U22wh4&open=AZ0kTEqOF52WU-U22wh4&pullRequest=79

Check warning on line 17 in DataAccess/Migrations/20260325091144_AddProjectsAndAllTimeEntriesPermissions.cs

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Define a constant instead of using this literal 'ViewAccounts' 4 times.

See more on https://sonarcloud.io/project/issues?id=TourmalineCore_InnerCircle.AccountsApi&issues=AZ0kTEqOF52WU-U22whi&open=AZ0kTEqOF52WU-U22whi&pullRequest=79

Check warning on line 17 in DataAccess/Migrations/20260325091144_AddProjectsAndAllTimeEntriesPermissions.cs

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Define a constant instead of using this literal 'CanViewInvoices' 4 times.

See more on https://sonarcloud.io/project/issues?id=TourmalineCore_InnerCircle.AccountsApi&issues=AZ0kTEqOF52WU-U22wh5&open=AZ0kTEqOF52WU-U22wh5&pullRequest=79

Check warning on line 17 in DataAccess/Migrations/20260325091144_AddProjectsAndAllTimeEntriesPermissions.cs

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Define a constant instead of using this literal 'CanManageDocuments' 4 times.

See more on https://sonarcloud.io/project/issues?id=TourmalineCore_InnerCircle.AccountsApi&issues=AZ0kTEqOF52WU-U22who&open=AZ0kTEqOF52WU-U22who&pullRequest=79

Check warning on line 17 in DataAccess/Migrations/20260325091144_AddProjectsAndAllTimeEntriesPermissions.cs

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Define a constant instead of using this literal 'ViewPersonalProfile' 4 times.

See more on https://sonarcloud.io/project/issues?id=TourmalineCore_InnerCircle.AccountsApi&issues=AZ0kTEqOF52WU-U22whd&open=AZ0kTEqOF52WU-U22whd&pullRequest=79

Check warning on line 17 in DataAccess/Migrations/20260325091144_AddProjectsAndAllTimeEntriesPermissions.cs

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Define a constant instead of using this literal 'CanManageTenants' 4 times.

See more on https://sonarcloud.io/project/issues?id=TourmalineCore_InnerCircle.AccountsApi&issues=AZ0kTEqOF52WU-U22whp&open=AZ0kTEqOF52WU-U22whp&pullRequest=79

Check warning on line 17 in DataAccess/Migrations/20260325091144_AddProjectsAndAllTimeEntriesPermissions.cs

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Define a constant instead of using this literal 'IsTenantsHardDeleteAllowed' 4 times.

See more on https://sonarcloud.io/project/issues?id=TourmalineCore_InnerCircle.AccountsApi&issues=AZ0kTEqOF52WU-U22whq&open=AZ0kTEqOF52WU-U22whq&pullRequest=79

Check warning on line 17 in DataAccess/Migrations/20260325091144_AddProjectsAndAllTimeEntriesPermissions.cs

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Define a constant instead of using this literal 'CanManageItems' 4 times.

See more on https://sonarcloud.io/project/issues?id=TourmalineCore_InnerCircle.AccountsApi&issues=AZ0kTEqOF52WU-U22wh1&open=AZ0kTEqOF52WU-U22wh1&pullRequest=79

Check warning on line 17 in DataAccess/Migrations/20260325091144_AddProjectsAndAllTimeEntriesPermissions.cs

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Define a constant instead of using this literal 'AUTO_TESTS_ONLY_IsEntriesHardDeleteAllowed' 4 times.

See more on https://sonarcloud.io/project/issues?id=TourmalineCore_InnerCircle.AccountsApi&issues=AZ0kTEqOF52WU-U22wh3&open=AZ0kTEqOF52WU-U22wh3&pullRequest=79

Check warning on line 17 in DataAccess/Migrations/20260325091144_AddProjectsAndAllTimeEntriesPermissions.cs

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Define a constant instead of using this literal 'ViewContacts' 4 times.

See more on https://sonarcloud.io/project/issues?id=TourmalineCore_InnerCircle.AccountsApi&issues=AZ0kTEqOF52WU-U22whe&open=AZ0kTEqOF52WU-U22whe&pullRequest=79

Check warning on line 17 in DataAccess/Migrations/20260325091144_AddProjectsAndAllTimeEntriesPermissions.cs

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Define a constant instead of using this literal 'IsCompensationsHardDeleteAllowed' 4 times.

See more on https://sonarcloud.io/project/issues?id=TourmalineCore_InnerCircle.AccountsApi&issues=AZ0kTEqOF52WU-U22whs&open=AZ0kTEqOF52WU-U22whs&pullRequest=79

Check warning on line 17 in DataAccess/Migrations/20260325091144_AddProjectsAndAllTimeEntriesPermissions.cs

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Define a constant instead of using this literal 'CanManageItemsTypes' 4 times.

See more on https://sonarcloud.io/project/issues?id=TourmalineCore_InnerCircle.AccountsApi&issues=AZ0kTEqOF52WU-U22why&open=AZ0kTEqOF52WU-U22why&pullRequest=79

Check warning on line 17 in DataAccess/Migrations/20260325091144_AddProjectsAndAllTimeEntriesPermissions.cs

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Define a constant instead of using this literal 'CanViewItemsTypes' 4 times.

See more on https://sonarcloud.io/project/issues?id=TourmalineCore_InnerCircle.AccountsApi&issues=AZ0kTEqOF52WU-U22whz&open=AZ0kTEqOF52WU-U22whz&pullRequest=79

Check warning on line 17 in DataAccess/Migrations/20260325091144_AddProjectsAndAllTimeEntriesPermissions.cs

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Define a constant instead of using this literal 'CanViewItems' 4 times.

See more on https://sonarcloud.io/project/issues?id=TourmalineCore_InnerCircle.AccountsApi&issues=AZ0kTEqOF52WU-U22wh2&open=AZ0kTEqOF52WU-U22wh2&pullRequest=79

Check warning on line 17 in DataAccess/Migrations/20260325091144_AddProjectsAndAllTimeEntriesPermissions.cs

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Define a constant instead of using this literal 'CanRequestCompensations' 4 times.

See more on https://sonarcloud.io/project/issues?id=TourmalineCore_InnerCircle.AccountsApi&issues=AZ0kTEqOF52WU-U22whm&open=AZ0kTEqOF52WU-U22whm&pullRequest=79

Check warning on line 17 in DataAccess/Migrations/20260325091144_AddProjectsAndAllTimeEntriesPermissions.cs

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Define a constant instead of using this literal 'ManageAccounts' 4 times.

See more on https://sonarcloud.io/project/issues?id=TourmalineCore_InnerCircle.AccountsApi&issues=AZ0kTEqOF52WU-U22whj&open=AZ0kTEqOF52WU-U22whj&pullRequest=79

Check warning on line 17 in DataAccess/Migrations/20260325091144_AddProjectsAndAllTimeEntriesPermissions.cs

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Define a constant instead of using this literal 'CanViewBooks' 4 times.

See more on https://sonarcloud.io/project/issues?id=TourmalineCore_InnerCircle.AccountsApi&issues=AZ0kTEqOF52WU-U22wht&open=AZ0kTEqOF52WU-U22wht&pullRequest=79

Check warning on line 17 in DataAccess/Migrations/20260325091144_AddProjectsAndAllTimeEntriesPermissions.cs

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Define a constant instead of using this literal 'CanManageBooks' 4 times.

See more on https://sonarcloud.io/project/issues?id=TourmalineCore_InnerCircle.AccountsApi&issues=AZ0kTEqOF52WU-U22whu&open=AZ0kTEqOF52WU-U22whu&pullRequest=79

Check warning on line 17 in DataAccess/Migrations/20260325091144_AddProjectsAndAllTimeEntriesPermissions.cs

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Define a constant instead of using this literal 'CanManageCompensations' 4 times.

See more on https://sonarcloud.io/project/issues?id=TourmalineCore_InnerCircle.AccountsApi&issues=AZ0kTEqOF52WU-U22whn&open=AZ0kTEqOF52WU-U22whn&pullRequest=79

Check warning on line 17 in DataAccess/Migrations/20260325091144_AddProjectsAndAllTimeEntriesPermissions.cs

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Define a constant instead of using this literal 'AUTO_TESTS_ONLY_IsItemsHardDeleteAllowed' 4 times.

See more on https://sonarcloud.io/project/issues?id=TourmalineCore_InnerCircle.AccountsApi&issues=AZ0kTEqOF52WU-U22wh0&open=AZ0kTEqOF52WU-U22wh0&pullRequest=79

Check warning on line 17 in DataAccess/Migrations/20260325091144_AddProjectsAndAllTimeEntriesPermissions.cs

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Define a constant instead of using this literal 'AUTO_TESTS_ONLY_IsItemTypesHardDeleteAllowed' 4 times.

See more on https://sonarcloud.io/project/issues?id=TourmalineCore_InnerCircle.AccountsApi&issues=AZ0kTEqOF52WU-U22whx&open=AZ0kTEqOF52WU-U22whx&pullRequest=79

Check warning on line 17 in DataAccess/Migrations/20260325091144_AddProjectsAndAllTimeEntriesPermissions.cs

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Define a constant instead of using this literal 'EditFullEmployeesData' 4 times.

See more on https://sonarcloud.io/project/issues?id=TourmalineCore_InnerCircle.AccountsApi&issues=AZ0kTEqOF52WU-U22whg&open=AZ0kTEqOF52WU-U22whg&pullRequest=79

Check warning on line 17 in DataAccess/Migrations/20260325091144_AddProjectsAndAllTimeEntriesPermissions.cs

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Define a constant instead of using this literal 'ManageRoles' 4 times.

See more on https://sonarcloud.io/project/issues?id=TourmalineCore_InnerCircle.AccountsApi&issues=AZ0kTEqOF52WU-U22whl&open=AZ0kTEqOF52WU-U22whl&pullRequest=79

migrationBuilder.UpdateData(
table: "Roles",
keyColumn: "Id",
keyValue: 2L,
column: "Permissions",
value: new[] { "ViewPersonalProfile", "ViewContacts", "ViewSalaryAndDocumentsData", "EditFullEmployeesData", "AccessAnalyticalForecastsPage", "ViewAccounts", "ManageAccounts", "ViewRoles", "ManageRoles", "CanRequestCompensations", "CanManageCompensations", "CanManageDocuments", "CanManageTenants", "IsTenantsHardDeleteAllowed", "IsAccountsHardDeleteAllowed", "IsCompensationsHardDeleteAllowed", "CanViewBooks", "CanManageBooks", "IsBooksHardDeleteAllowed", "AUTO_TESTS_ONLY_IsSetUserPasswordBypassingEmailConfirmationAllowed", "AUTO_TESTS_ONLY_IsItemTypesHardDeleteAllowed", "CanManageItemsTypes", "CanViewItemsTypes", "AUTO_TESTS_ONLY_IsItemsHardDeleteAllowed", "CanManageItems", "CanViewItems", "AUTO_TESTS_ONLY_IsEntriesHardDeleteAllowed", "CanManagePersonalTimeTracker", "CanViewAllTimeTrackerEntries", "CanViewAllProjects", "CanViewInvoices" });
}

protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.UpdateData(
table: "Roles",
keyColumn: "Id",
keyValue: 1L,
column: "Permissions",
value: new[] { "ViewPersonalProfile", "ViewContacts", "ViewSalaryAndDocumentsData", "EditFullEmployeesData", "AccessAnalyticalForecastsPage", "ViewAccounts", "ManageAccounts", "ViewRoles", "ManageRoles", "CanRequestCompensations", "CanManageCompensations", "CanManageDocuments", "CanManageTenants", "IsTenantsHardDeleteAllowed", "IsAccountsHardDeleteAllowed", "IsCompensationsHardDeleteAllowed", "CanViewBooks", "CanManageBooks", "IsBooksHardDeleteAllowed", "AUTO_TESTS_ONLY_IsSetUserPasswordBypassingEmailConfirmationAllowed", "AUTO_TESTS_ONLY_IsItemTypesHardDeleteAllowed", "CanManageItemsTypes", "CanViewItemsTypes", "AUTO_TESTS_ONLY_IsItemsHardDeleteAllowed", "CanManageItems", "CanViewItems", "AUTO_TESTS_ONLY_IsEntriesHardDeleteAllowed", "CanManagePersonalTimeTracker", "CanViewInvoices" });

migrationBuilder.UpdateData(
table: "Roles",
keyColumn: "Id",
keyValue: 2L,
column: "Permissions",
value: new[] { "ViewPersonalProfile", "ViewContacts", "ViewSalaryAndDocumentsData", "EditFullEmployeesData", "AccessAnalyticalForecastsPage", "ViewAccounts", "ManageAccounts", "ViewRoles", "ManageRoles", "CanRequestCompensations", "CanManageCompensations", "CanManageDocuments", "CanManageTenants", "IsTenantsHardDeleteAllowed", "IsAccountsHardDeleteAllowed", "IsCompensationsHardDeleteAllowed", "CanViewBooks", "CanManageBooks", "IsBooksHardDeleteAllowed", "AUTO_TESTS_ONLY_IsSetUserPasswordBypassingEmailConfirmationAllowed", "AUTO_TESTS_ONLY_IsItemTypesHardDeleteAllowed", "CanManageItemsTypes", "CanViewItemsTypes", "AUTO_TESTS_ONLY_IsItemsHardDeleteAllowed", "CanManageItems", "CanViewItems", "AUTO_TESTS_ONLY_IsEntriesHardDeleteAllowed", "CanManagePersonalTimeTracker", "CanViewInvoices" });
}
}
}
4 changes: 2 additions & 2 deletions DataAccess/Migrations/UsersDbContextModelSnapshot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -165,13 +165,13 @@ protected override void BuildModel(ModelBuilder modelBuilder)
{
Id = 1L,
Name = "Admin",
Permissions = new[] { "ViewPersonalProfile", "ViewContacts", "ViewSalaryAndDocumentsData", "EditFullEmployeesData", "AccessAnalyticalForecastsPage", "ViewAccounts", "ManageAccounts", "ViewRoles", "ManageRoles", "CanRequestCompensations", "CanManageCompensations", "CanManageDocuments", "CanManageTenants", "IsTenantsHardDeleteAllowed", "IsAccountsHardDeleteAllowed", "IsCompensationsHardDeleteAllowed", "CanViewBooks", "CanManageBooks", "IsBooksHardDeleteAllowed", "AUTO_TESTS_ONLY_IsSetUserPasswordBypassingEmailConfirmationAllowed", "AUTO_TESTS_ONLY_IsItemTypesHardDeleteAllowed", "CanManageItemsTypes", "CanViewItemsTypes", "AUTO_TESTS_ONLY_IsItemsHardDeleteAllowed", "CanManageItems", "CanViewItems", "AUTO_TESTS_ONLY_IsEntriesHardDeleteAllowed", "CanManagePersonalTimeTracker", "CanViewInvoices" }
Permissions = new[] { "ViewPersonalProfile", "ViewContacts", "ViewSalaryAndDocumentsData", "EditFullEmployeesData", "AccessAnalyticalForecastsPage", "ViewAccounts", "ManageAccounts", "ViewRoles", "ManageRoles", "CanRequestCompensations", "CanManageCompensations", "CanManageDocuments", "CanManageTenants", "IsTenantsHardDeleteAllowed", "IsAccountsHardDeleteAllowed", "IsCompensationsHardDeleteAllowed", "CanViewBooks", "CanManageBooks", "IsBooksHardDeleteAllowed", "AUTO_TESTS_ONLY_IsSetUserPasswordBypassingEmailConfirmationAllowed", "AUTO_TESTS_ONLY_IsItemTypesHardDeleteAllowed", "CanManageItemsTypes", "CanViewItemsTypes", "AUTO_TESTS_ONLY_IsItemsHardDeleteAllowed", "CanManageItems", "CanViewItems", "AUTO_TESTS_ONLY_IsEntriesHardDeleteAllowed", "CanManagePersonalTimeTracker", "CanViewAllTimeTrackerEntries", "CanViewAllProjects", "CanViewInvoices" }
},
new
{
Id = 2L,
Name = "CEO",
Permissions = new[] { "ViewPersonalProfile", "ViewContacts", "ViewSalaryAndDocumentsData", "EditFullEmployeesData", "AccessAnalyticalForecastsPage", "ViewAccounts", "ManageAccounts", "ViewRoles", "ManageRoles", "CanRequestCompensations", "CanManageCompensations", "CanManageDocuments", "CanManageTenants", "IsTenantsHardDeleteAllowed", "IsAccountsHardDeleteAllowed", "IsCompensationsHardDeleteAllowed", "CanViewBooks", "CanManageBooks", "IsBooksHardDeleteAllowed", "AUTO_TESTS_ONLY_IsSetUserPasswordBypassingEmailConfirmationAllowed", "AUTO_TESTS_ONLY_IsItemTypesHardDeleteAllowed", "CanManageItemsTypes", "CanViewItemsTypes", "AUTO_TESTS_ONLY_IsItemsHardDeleteAllowed", "CanManageItems", "CanViewItems", "AUTO_TESTS_ONLY_IsEntriesHardDeleteAllowed", "CanManagePersonalTimeTracker", "CanViewInvoices" }
Permissions = new[] { "ViewPersonalProfile", "ViewContacts", "ViewSalaryAndDocumentsData", "EditFullEmployeesData", "AccessAnalyticalForecastsPage", "ViewAccounts", "ManageAccounts", "ViewRoles", "ManageRoles", "CanRequestCompensations", "CanManageCompensations", "CanManageDocuments", "CanManageTenants", "IsTenantsHardDeleteAllowed", "IsAccountsHardDeleteAllowed", "IsCompensationsHardDeleteAllowed", "CanViewBooks", "CanManageBooks", "IsBooksHardDeleteAllowed", "AUTO_TESTS_ONLY_IsSetUserPasswordBypassingEmailConfirmationAllowed", "AUTO_TESTS_ONLY_IsItemTypesHardDeleteAllowed", "CanManageItemsTypes", "CanViewItemsTypes", "AUTO_TESTS_ONLY_IsItemsHardDeleteAllowed", "CanManageItems", "CanViewItems", "AUTO_TESTS_ONLY_IsEntriesHardDeleteAllowed", "CanManagePersonalTimeTracker", "CanViewAllTimeTrackerEntries", "CanViewAllProjects", "CanViewInvoices" }
});
});

Expand Down
Loading