Skip to content

Commit 1945cc6

Browse files
committed
make dashboards users free for now
1 parent 7bb55fa commit 1945cc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/actions/inviteToWorkspace.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ module.exports = async function inviteToWorkspace(params) {
4949
throw new Error('Forbidden');
5050
}
5151
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;
52+
const numPaidUsers = users.filter(user => !user.isFreeUser && !user.roles?.includes('dashboards')).length;
5353
if (workspace.subscriptionTier !== 'pro' && numPaidUsers > 0) {
5454
throw new Error('Cannot invite user without creating a subscription');
5555
}

0 commit comments

Comments
 (0)