mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-21 11:36:05 +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
5.3 KiB
TypeScript
54 lines
5.3 KiB
TypeScript
import type { TranslationStrings } from '../types';
|
|
|
|
const perm: TranslationStrings = {
|
|
'perm.title': 'การตั้งค่าการอนุญาต',
|
|
'perm.subtitle': 'ควบคุมว่าใครสามารถดำเนินการข้ามแอปพลิเคชันได้',
|
|
'perm.saved': 'บันทึกการตั้งค่าสิทธิ์แล้ว',
|
|
'perm.resetDefaults': 'รีเซ็ตเป็นค่าเริ่มต้น',
|
|
'perm.customized': 'กำหนดเอง',
|
|
'perm.level.admin': 'ผู้ดูแลระบบเท่านั้น',
|
|
'perm.level.tripOwner': 'เจ้าของทริป',
|
|
'perm.level.tripMember': 'สมาชิกทริป',
|
|
'perm.level.everybody': 'ทุกคน',
|
|
'perm.cat.trip': 'การจัดการการเดินทาง',
|
|
'perm.cat.members': 'การจัดการสมาชิก',
|
|
'perm.cat.files': 'ไฟล์',
|
|
'perm.cat.content': 'เนื้อหาและกำหนดการ',
|
|
'perm.cat.extras': 'งบประมาณ การบรรจุ และการทำงานร่วมกัน',
|
|
'perm.action.trip_create': 'สร้างการเดินทาง',
|
|
'perm.action.trip_edit': 'แก้ไขรายละเอียดการเดินทาง',
|
|
'perm.action.trip_delete': 'ลบการเดินทาง',
|
|
'perm.action.trip_archive': 'เก็บถาวร / ยกเลิกการเก็บถาวรการเดินทาง',
|
|
'perm.action.trip_cover_upload': 'อัปโหลดภาพหน้าปก',
|
|
'perm.action.member_manage': 'เพิ่ม/ลบสมาชิก',
|
|
'perm.action.file_upload': 'อัปโหลดไฟล์',
|
|
'perm.action.file_edit': 'แก้ไขข้อมูลเมตาของไฟล์',
|
|
'perm.action.file_delete': 'ลบไฟล์',
|
|
'perm.action.place_edit': 'เพิ่ม/แก้ไข/ลบสถานที่',
|
|
'perm.action.day_edit': 'แก้ไขวัน บันทึกย่อ และการมอบหมาย',
|
|
'perm.action.reservation_edit': 'จัดการการจอง',
|
|
'perm.action.budget_edit': 'จัดการงบประมาณ',
|
|
'perm.action.packing_edit': 'จัดการรายการจัดกระเป๋า',
|
|
'perm.action.collab_edit': 'การทำงานร่วมกัน (บันทึกย่อ โพล แชท)',
|
|
'perm.action.share_manage': 'จัดการลิงก์แชร์',
|
|
'perm.actionHint.trip_create': 'ใครสามารถสร้างทริปใหม่ได้',
|
|
'perm.action.journal_link': 'เชื่อมโยงบันทึก',
|
|
'perm.actionHint.trip_edit': 'ใครสามารถเปลี่ยนชื่อการเดินทาง วันที่ คำอธิบาย และสกุลเงินได้',
|
|
'perm.actionHint.trip_delete': 'ใครสามารถลบการเดินทางได้อย่างถาวร',
|
|
'perm.actionHint.trip_archive': 'ใครสามารถเก็บหรือยกเลิกการเก็บถาวรการเดินทาง',
|
|
'perm.actionHint.trip_cover_upload': 'ใครสามารถอัปโหลดหรือเปลี่ยนภาพหน้าปกได้',
|
|
'perm.actionHint.member_manage': 'ใครสามารถเชิญหรือลบสมาชิกทริปได้',
|
|
'perm.actionHint.file_upload': 'ใครสามารถอัปโหลดไฟล์ไปยังทริปได้',
|
|
'perm.actionHint.file_edit': 'ใครสามารถแก้ไขคำอธิบายไฟล์และลิงก์ได้',
|
|
'perm.actionHint.file_delete': 'ใครสามารถย้ายไฟล์ไปที่ถังขยะหรือลบออกอย่างถาวร',
|
|
'perm.actionHint.place_edit': 'ใครสามารถเพิ่ม แก้ไข หรือลบสถานที่ได้',
|
|
'perm.actionHint.day_edit': 'ใครสามารถแก้ไขวัน บันทึกวัน และสถานที่มอบหมายได้',
|
|
'perm.actionHint.reservation_edit': 'ใครสามารถสร้าง แก้ไข หรือลบการจองได้',
|
|
'perm.actionHint.budget_edit': 'ใครสามารถสร้าง แก้ไข หรือลบรายการงบประมาณได้',
|
|
'perm.actionHint.packing_edit': 'ใครสามารถจัดการบรรจุสิ่งของและถุงได้',
|
|
'perm.actionHint.collab_edit': 'ใครสามารถสร้างบันทึก โพล และส่งข้อความได้',
|
|
'perm.actionHint.share_manage': 'ใครสามารถสร้างหรือลบลิงก์แชร์สาธารณะได้',
|
|
'perm.actionHint.journal_link': 'ใครสามารถเชื่อมโยงบันทึกจาก Journey กับทริปและเปิดให้สมาชิกเข้าถึงได้',
|
|
};
|
|
export default perm;
|