The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
import { PermissionFlagType } from 'twenty-shared/constants';
import { type AccessPolicy } from 'src/engine/guards/types/access-policy.type';
export const ROLE_ASSIGNMENT_ACCESS_POLICY: AccessPolicy = {
authPrincipals: {
userSession: {
standard: true,
impersonated: true,
playground: true,
workspaceAgnostic: false,
},
apiKey: false,
oauthClient: { withUser: true, withoutUser: false },
application: false,
},
requiredPermissionFlags: [PermissionFlagType.ROLES],
};