Avoids pnpm allowBuilds block on dsh plugin add; README install steps expanded for first-time users. Co-authored-by: Cursor <cursoragent@cursor.com>
8 lines
199 B
JavaScript
8 lines
199 B
JavaScript
export function isAuthorized(opts) {
|
|
if (opts.allowAllUsers)
|
|
return true;
|
|
if (opts.userId === undefined)
|
|
return false;
|
|
return opts.allowedUserIds.includes(opts.userId);
|
|
}
|