fix(dashboard): enable edit org name

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-09-20 15:14:34 +02:00
parent 0959ede055
commit febf0df475
2 changed files with 6 additions and 13 deletions

View File

@@ -23,7 +23,7 @@ export const organizationRouter = createTRPCRouter({
organizationId: input.id,
});
if (!access) {
if (access?.role !== 'org:admin') {
throw TRPCAccessError('You do not have access to this project');
}
@@ -45,7 +45,7 @@ export const organizationRouter = createTRPCRouter({
organizationId: input.organizationSlug,
});
if (!access) {
if (access?.role !== 'org:admin') {
throw TRPCAccessError('You do not have access to this project');
}
@@ -100,7 +100,7 @@ export const organizationRouter = createTRPCRouter({
organizationId: member.organizationId,
});
if (!access) {
if (access?.role !== 'org:admin') {
throw TRPCAccessError('You do not have access to this project');
}
@@ -142,7 +142,7 @@ export const organizationRouter = createTRPCRouter({
organizationId: input.organizationId,
});
if (!access) {
if (access?.role !== 'org:admin') {
throw TRPCAccessError('You do not have access to this project');
}
@@ -176,7 +176,7 @@ export const organizationRouter = createTRPCRouter({
organizationId: input.organizationSlug,
});
if (!access) {
if (access?.role !== 'org:admin') {
throw TRPCAccessError('You do not have access to this project');
}