mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-30 00:20:07 +00:00
80b6739362
A trip can now show one journal from the Journey addon as its own: any journal its owner picks, and one journal on as many trips as they like. The trip members chosen for the link get into the journal as viewers or editors, see it in their own journal list and follow it live, for as long as the link holds them and they stay on the trip. That access is never copied into journey_contributors. It is read where journal access is read: the contributor repository answers with the stronger of a direct role and a link role, the journal list and the live update recipients take the link members in, and the photo access check goes the same way. Every one of those reads starts from linkReach, which only counts members still on the linking trip, so unlinking, deselecting someone and their leaving the trip all end exactly what the link gave. A member who leaves is also taken off the link, so coming back later does not quietly reopen the journal. Linking or changing the members takes the journal's owner and the new journal_link trip permission (trip owner by default); unlinking takes either. /api/trips/:tripId/journal answers the link as each member may see it, /candidates says who a journal would be opened to for the first time, and four MCP tools do the same over the same service. A trip:journal:changed event tells the trip to look again.
54 lines
3.3 KiB
TypeScript
54 lines
3.3 KiB
TypeScript
import type { TranslationStrings } from '../types';
|
|
|
|
const perm: TranslationStrings = {
|
|
'perm.title': 'Configuración de permisos',
|
|
'perm.subtitle': 'Controla quién puede realizar acciones en la aplicación',
|
|
'perm.saved': 'Configuración de permisos guardada',
|
|
'perm.resetDefaults': 'Restablecer valores predeterminados',
|
|
'perm.customized': 'personalizado',
|
|
'perm.level.admin': 'Solo administrador',
|
|
'perm.level.tripOwner': 'Propietario del viaje',
|
|
'perm.level.tripMember': 'Miembros del viaje',
|
|
'perm.level.everybody': 'Todos',
|
|
'perm.cat.trip': 'Gestión de viajes',
|
|
'perm.cat.members': 'Gestión de miembros',
|
|
'perm.cat.files': 'Archivos',
|
|
'perm.cat.content': 'Contenido y horario',
|
|
'perm.cat.extras': 'Presupuesto, equipaje y colaboración',
|
|
'perm.action.trip_create': 'Crear viajes',
|
|
'perm.action.trip_edit': 'Editar detalles del viaje',
|
|
'perm.action.trip_delete': 'Eliminar viajes',
|
|
'perm.action.trip_archive': 'Archivar / desarchivar viajes',
|
|
'perm.action.trip_cover_upload': 'Subir imagen de portada',
|
|
'perm.action.member_manage': 'Añadir / eliminar miembros',
|
|
'perm.action.file_upload': 'Subir archivos',
|
|
'perm.action.file_edit': 'Editar metadatos del archivo',
|
|
'perm.action.file_delete': 'Eliminar archivos',
|
|
'perm.action.place_edit': 'Añadir / editar / eliminar lugares',
|
|
'perm.action.day_edit': 'Editar días, notas y asignaciones',
|
|
'perm.action.reservation_edit': 'Gestionar reservas',
|
|
'perm.action.budget_edit': 'Gestionar presupuesto',
|
|
'perm.action.packing_edit': 'Gestionar listas de equipaje',
|
|
'perm.action.collab_edit': 'Colaboración (notas, encuestas, chat)',
|
|
'perm.action.share_manage': 'Gestionar enlaces compartidos',
|
|
'perm.actionHint.trip_create': 'Quién puede crear nuevos viajes',
|
|
'perm.action.journal_link': 'Vincular un diario',
|
|
'perm.actionHint.trip_edit': 'Quién puede cambiar el nombre, fechas, descripción y moneda del viaje',
|
|
'perm.actionHint.trip_delete': 'Quién puede eliminar permanentemente un viaje',
|
|
'perm.actionHint.trip_archive': 'Quién puede archivar o desarchivar un viaje',
|
|
'perm.actionHint.trip_cover_upload': 'Quién puede subir o cambiar la imagen de portada',
|
|
'perm.actionHint.member_manage': 'Quién puede invitar o eliminar miembros del viaje',
|
|
'perm.actionHint.file_upload': 'Quién puede subir archivos a un viaje',
|
|
'perm.actionHint.file_edit': 'Quién puede editar descripciones y enlaces de archivos',
|
|
'perm.actionHint.file_delete': 'Quién puede mover archivos a la papelera o eliminarlos permanentemente',
|
|
'perm.actionHint.place_edit': 'Quién puede añadir, editar o eliminar lugares',
|
|
'perm.actionHint.day_edit': 'Quién puede editar días, notas de días y asignaciones de lugares',
|
|
'perm.actionHint.reservation_edit': 'Quién puede crear, editar o eliminar reservas',
|
|
'perm.actionHint.budget_edit': 'Quién puede crear, editar o eliminar partidas del presupuesto',
|
|
'perm.actionHint.packing_edit': 'Quién puede gestionar artículos de equipaje y bolsas',
|
|
'perm.actionHint.collab_edit': 'Quién puede crear notas, encuestas y enviar mensajes',
|
|
'perm.actionHint.share_manage': 'Quién puede crear o eliminar enlaces compartidos públicos',
|
|
'perm.actionHint.journal_link': 'Quién puede vincular un diario de Journey al viaje y abrirlo a sus miembros',
|
|
};
|
|
export default perm;
|