chore: Synchronizing refactor and small fixes from enterprise codebase (#3634)
* chore: Syncronizing refactor and small fixes from enterprise codebase * fix
This commit is contained in:
@@ -642,6 +642,7 @@ router.post("collections.update", auth(), async (ctx) => {
|
||||
if (privacyChanged || sharingChanged) {
|
||||
await collection.reload();
|
||||
const team = await Team.findByPk(user.teamId);
|
||||
invariant(team, "team not found");
|
||||
|
||||
if (
|
||||
collection.permission === null &&
|
||||
|
||||
Reference in New Issue
Block a user