Rollen Freigaben Push und Beleg Upload ueberarbeiten
This commit is contained in:
@@ -131,29 +131,33 @@ async function main() {
|
||||
const deko = await upsertWorkingGroup("AG Deko");
|
||||
const awareness = await upsertWorkingGroup("AG Awareness");
|
||||
const technik = await upsertWorkingGroup("AG Technik");
|
||||
const orga = await upsertWorkingGroup("AG Orga");
|
||||
const finanzen = await upsertWorkingGroup("AG Finanzen");
|
||||
|
||||
await upsertBudget(deko.id, currentPeriod.id, "Deko Hauptbudget", 0, "#FFB94A", 0);
|
||||
await upsertBudget(awareness.id, currentPeriod.id, "Awareness Hauptbudget", 800, "#68A35D", 250);
|
||||
await upsertBudget(technik.id, currentPeriod.id, "Technik Infrastruktur", 1500, "#5677F6", 500);
|
||||
|
||||
await upsertUser({
|
||||
username: "vorstand-a",
|
||||
role: Role.ADMIN,
|
||||
username: "vorstand",
|
||||
role: Role.BOARD,
|
||||
passwordHash,
|
||||
approvalPermissions: [ApprovalType.CHAIR_A]
|
||||
approvalPermissions: [ApprovalType.CHAIR_B]
|
||||
});
|
||||
|
||||
await upsertUser({
|
||||
username: "vorstand-b",
|
||||
role: Role.ADMIN,
|
||||
username: "orga",
|
||||
role: Role.ORGA,
|
||||
passwordHash,
|
||||
approvalPermissions: [ApprovalType.CHAIR_B]
|
||||
workingGroupId: orga.id,
|
||||
approvalPermissions: [ApprovalType.CHAIR_A]
|
||||
});
|
||||
|
||||
await upsertUser({
|
||||
username: "finanzen",
|
||||
role: Role.FINANCE,
|
||||
passwordHash,
|
||||
workingGroupId: finanzen.id,
|
||||
approvalPermissions: [ApprovalType.FINANCE]
|
||||
});
|
||||
|
||||
@@ -184,4 +188,4 @@ main()
|
||||
console.error(error);
|
||||
await prisma.$disconnect();
|
||||
process.exit(1);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user