mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Add roles per architectural documentation.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||
<Version>3.0.99.1016</Version>
|
||||
<Version>3.0.99.1017</Version>
|
||||
<Company>Canary Islands Computer Museum</Company>
|
||||
<Copyright>Copyright © 2003-2020 Natalia Portillo</Copyright>
|
||||
<Product>Canary Islands Computer Museum Website</Product>
|
||||
|
||||
@@ -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."
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user