We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bb55fa commit 1945cc6Copy full SHA for 1945cc6
src/actions/inviteToWorkspace.js
@@ -49,7 +49,7 @@ module.exports = async function inviteToWorkspace(params) {
49
throw new Error('Forbidden');
50
}
51
const users = await User.find({ _id: { $in: workspace.members.map(member => member.userId) } });
52
- const numPaidUsers = users.filter(user => !user.isFreeUser && !user.roles?.includes('readonly')).length;
+ const numPaidUsers = users.filter(user => !user.isFreeUser && !user.roles?.includes('dashboards')).length;
53
if (workspace.subscriptionTier !== 'pro' && numPaidUsers > 0) {
54
throw new Error('Cannot invite user without creating a subscription');
55
0 commit comments