/**
 * Get the document/content visibility levels accessible to a given role.
 */
export function getVisibleLevels(role: string | undefined): string[] {
	switch (role) {
		case 'admin':
			return ['public', 'members', 'board', 'admin'];
		case 'board':
			return ['public', 'members', 'board'];
		default:
			return ['public', 'members'];
	}
}
