mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-14 00:01:03 +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.9 KiB
TypeScript
54 lines
3.9 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;
|