mirror of
https://github.com/logto-io/logto.git
synced 2025-01-13 21:30:30 -05:00
c5da152ddc
introduce internal roles which name starts with #internal: with RLS policies to make them read-only.
3 lines
142 B
TypeScript
3 lines
142 B
TypeScript
export const internalRolePrefix = '#internal:';
|
|
|
|
export const isInternalRole = (roleName: string) => roleName.startsWith(internalRolePrefix);
|