We’re building a shared folder feature with Couchbase and using documents to represent both the folders and the files they contain. Our current design links files to a specific folder using a folderId
, and we use Couchbase channels to manage read/write access: each folder is assigned to a channel, and users are given access to that channel.
Our goal is to implement a new feature that allows an administrator to temporarily disable the ability for other users to add new files to a specific folder. We want to achieve this without the overhead of removing and re-adding thousands of users from the channel.
What is the most effective way to implement this “temporary read-only” mode for a folder? We’re exploring solutions involving roles, permissions, or other best practices within Couchbase Sync Gateway.