Updated roles and permissions logic.
This commit is contained in:
@@ -40,7 +40,7 @@ export async function findSession(req) {
|
||||
website = await getWebsite({ id: websiteId });
|
||||
}
|
||||
|
||||
if (!website || website.isDeleted) {
|
||||
if (!website || website.deletedAt) {
|
||||
throw new Error(`Website not found: ${websiteId}`);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user