Add roles per architectural documentation.

This commit is contained in:
2020-05-23 19:37:28 +01:00
parent da54148ddf
commit 9529ba470e
3 changed files with 46 additions and 2 deletions

View File

@@ -39,7 +39,7 @@ namespace Marechai.Database.Seeders
IdentityResult result = roleManager.CreateAsync(newRole).Result; IdentityResult result = roleManager.CreateAsync(newRole).Result;
Console.WriteLine(result.Succeeded ? "New role {0} added successfully" : "Failed to add new role {0}", Console.WriteLine(result.Succeeded ? "New role {0} added successfully" : "Failed to add new role {0}",
role.Description); role.Name);
} }
} }
} }

View File

@@ -2,7 +2,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web"> <Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup> <PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework> <TargetFramework>netcoreapp3.1</TargetFramework>
<Version>3.0.99.1016</Version> <Version>3.0.99.1017</Version>
<Company>Canary Islands Computer Museum</Company> <Company>Canary Islands Computer Museum</Company>
<Copyright>Copyright © 2003-2020 Natalia Portillo</Copyright> <Copyright>Copyright © 2003-2020 Natalia Portillo</Copyright>
<Product>Canary Islands Computer Museum Website</Product> <Product>Canary Islands Computer Museum Website</Product>

View File

@@ -14,6 +14,50 @@
{ {
"Name": "UberAdmin", "Name": "UberAdmin",
"Description": "Can administer everything, cannot be deleted, only one must exist." "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."
} }
] ]
} }