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
2.8 KiB
TypeScript
54 lines
2.8 KiB
TypeScript
import type { TranslationStrings } from '../types';
|
|
|
|
const perm: TranslationStrings = {
|
|
'perm.title': 'Ustawienia uprawnień',
|
|
'perm.subtitle': 'Kontroluj uprawnienia w aplikacji',
|
|
'perm.saved': 'Ustawienia uprawnień zapisane',
|
|
'perm.resetDefaults': 'Przywróć domyślne',
|
|
'perm.customized': 'dostosowane',
|
|
'perm.level.admin': 'Tylko admin',
|
|
'perm.level.tripOwner': 'Właściciel podróży',
|
|
'perm.level.tripMember': 'Członkowie podróży',
|
|
'perm.level.everybody': 'Wszyscy',
|
|
'perm.cat.trip': 'Zarządzanie podróżami',
|
|
'perm.cat.members': 'Zarządzanie członkami',
|
|
'perm.cat.files': 'Pliki',
|
|
'perm.cat.content': 'Treść i harmonogram',
|
|
'perm.cat.extras': 'Budżet, pakowanie i współpraca',
|
|
'perm.action.trip_create': 'Tworzenie podróży',
|
|
'perm.action.trip_edit': 'Edytowanie podróży',
|
|
'perm.action.trip_delete': 'Usuwanie podróży',
|
|
'perm.action.trip_archive': 'Archiwizacja podróży',
|
|
'perm.action.trip_cover_upload': 'Przesyłanie okładki',
|
|
'perm.action.member_manage': 'Zarządzanie członkami',
|
|
'perm.action.file_upload': 'Przesyłanie plików',
|
|
'perm.action.file_edit': 'Edytowanie plików',
|
|
'perm.action.file_delete': 'Usuwanie plików',
|
|
'perm.action.place_edit': 'Zarządzanie miejscami',
|
|
'perm.action.day_edit': 'Edytowanie dni',
|
|
'perm.action.reservation_edit': 'Zarządzanie rezerwacjami',
|
|
'perm.action.budget_edit': 'Zarządzanie budżetem',
|
|
'perm.action.packing_edit': 'Zarządzanie pakowaniem',
|
|
'perm.action.collab_edit': 'Współpraca',
|
|
'perm.action.share_manage': 'Zarządzanie udostępnianiem',
|
|
'perm.actionHint.trip_create': 'Kto może tworzyć nowe podróże',
|
|
'perm.action.journal_link': 'Połącz dziennik',
|
|
'perm.actionHint.trip_edit': 'Kto może edytować szczegóły podróży',
|
|
'perm.actionHint.trip_delete': 'Kto może usunąć podróż',
|
|
'perm.actionHint.trip_archive': 'Kto może archiwizować podróż',
|
|
'perm.actionHint.trip_cover_upload': 'Kto może zmieniać okładkę',
|
|
'perm.actionHint.member_manage': 'Kto może zapraszać lub usuwać członków',
|
|
'perm.actionHint.file_upload': 'Kto może przesyłać pliki',
|
|
'perm.actionHint.file_edit': 'Kto może edytować pliki',
|
|
'perm.actionHint.file_delete': 'Kto może usuwać pliki',
|
|
'perm.actionHint.place_edit': 'Kto może zarządzać miejscami',
|
|
'perm.actionHint.day_edit': 'Kto może edytować dni i przypisania',
|
|
'perm.actionHint.reservation_edit': 'Kto może zarządzać rezerwacjami',
|
|
'perm.actionHint.budget_edit': 'Kto może zarządzać budżetem',
|
|
'perm.actionHint.packing_edit': 'Kto może zarządzać pakowaniem',
|
|
'perm.actionHint.collab_edit': 'Kto może korzystać ze współpracy',
|
|
'perm.actionHint.share_manage': 'Kto może zarządzać linkami',
|
|
'perm.actionHint.journal_link': 'Kto może połączyć dziennik z Journey z podróżą i udostępnić go jej członkom',
|
|
};
|
|
export default perm;
|