From 9529ba470ef9d077dbeedc3dbfeff0cedcaeaf79 Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Sat, 23 May 2020 19:37:28 +0100 Subject: [PATCH] Add roles per architectural documentation. --- Marechai.Database/Seeders/Roles.cs | 2 +- Marechai/Marechai.csproj | 2 +- Marechai/appsettings.json | 44 ++++++++++++++++++++++++++++++ 3 files changed, 46 insertions(+), 2 deletions(-) diff --git a/Marechai.Database/Seeders/Roles.cs b/Marechai.Database/Seeders/Roles.cs index b4aadc26..92b0ab78 100644 --- a/Marechai.Database/Seeders/Roles.cs +++ b/Marechai.Database/Seeders/Roles.cs @@ -39,7 +39,7 @@ namespace Marechai.Database.Seeders IdentityResult result = roleManager.CreateAsync(newRole).Result; Console.WriteLine(result.Succeeded ? "New role {0} added successfully" : "Failed to add new role {0}", - role.Description); + role.Name); } } } diff --git a/Marechai/Marechai.csproj b/Marechai/Marechai.csproj index 638f5e98..50879e90 100644 --- a/Marechai/Marechai.csproj +++ b/Marechai/Marechai.csproj @@ -2,7 +2,7 @@ netcoreapp3.1 - 3.0.99.1016 + 3.0.99.1017 Canary Islands Computer Museum Copyright © 2003-2020 Natalia Portillo Canary Islands Computer Museum Website diff --git a/Marechai/appsettings.json b/Marechai/appsettings.json index f192d1bb..2b2b42e5 100644 --- a/Marechai/appsettings.json +++ b/Marechai/appsettings.json @@ -14,6 +14,50 @@ { "Name": "UberAdmin", "Description": "Can administer everything, cannot be deleted, only one must exist." + }, + { + "Name": "Writer", + "Description": "Can write new textual data about an artifact." + }, + { + "Name": "Proofreader", + "Description": "Can correct textual data." + }, + { + "Name": "Translator", + "Description": "Can translate textual data." + }, + { + "Name": "SuperTranslator", + "Description": "Can translate textual data and proofread translations." + }, + { + "Name": "Collaborator", + "Description": "Can propose changes or additions to artifacts." + }, + { + "Name": "Curator", + "Description": "Can make changes or additions to artifacts and curate the ones done by a collaborator." + }, + { + "Name": "PhysicalCurator", + "Description": "Same as curator but in addition can control a physical inventory." + }, + { + "Name": "Technician", + "Description": "Can modify repairs of artifacts in the inventory." + }, + { + "Name": "SuperTechnician", + "Description": "Can add, modify and close repairs and approve changes made by a technician of artifacts in the inventory." + }, + { + "Name": "Administrator", + "Description": "Can administer certain parts of the website." + }, + { + "Name": "NormalUser", + "Description": "A normal user role." } ] } \ No newline at end of file