Skip to content

Commit

Permalink
fix: allow skinParams only for turbo spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
wa0x6e committed Feb 4, 2025
1 parent 5aff0de commit 578aad9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/writer/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,9 @@ export async function verify(body): Promise<any> {
const isAdmin = admins.includes(body.address.toLowerCase());
const newAdmins = (msg.payload.admins || []).map(admin => admin.toLowerCase());

if (msg.payload.domain && !space?.turbo && !space?.domain) {
return Promise.reject('domain is a turbo feature only');
if (!space?.turbo && !space?.domain) {
if (msg.payload.domain) return Promise.reject('domain is a turbo feature only');
if (msg.payload.skinParams) return Promise.reject('skin is a turbo feature only');
}

const anotherSpaceWithDomain = (
Expand Down

0 comments on commit 578aad9

Please sign in to comment.