feat(drive): add readonly policy

permmit admin to freeze a drive, trash janitor background job is also disabled for this drive
This commit is contained in:
Edouard Vanbelle
2026-07-15 22:21:15 +02:00
parent 346e2e879c
commit a6427fc028
33 changed files with 1094 additions and 95 deletions
+11 -1
View File
@@ -837,7 +837,9 @@
"include_in_photo_index_help": "عرض ملفات الصور والفيديو من هذا Drive في الجدول الزمني للصور وعلى خريطة الأماكن. تُضمَّن Drives الشخصية الافتراضية تلقائيًا؛ فعِّل هذا الخيار مع Drives المشتركة التي تحتوي فعلاً على صور (مثل «صور العائلة»).",
"include_in_music_index": "تضمين في الموسيقى",
"include_in_music_index_help": "تضمين الملفات الصوتية من هذا Drive في مكتبة الموسيقى. تُضمَّن Drives الشخصية الافتراضية تلقائيًا؛ فعِّل هذا الخيار مع Drives المشتركة التي تحتوي فعلاً على مجموعة موسيقية (مثل «موسيقى العائلة»، «تعاون فرقة»).",
"implied_by_forbid_sharing": "مُطبَّق بالفعل من قبل «منع المشاركة لكل مورد»."
"implied_by_forbid_sharing": "مُطبَّق بالفعل من قبل «منع المشاركة لكل مورد».",
"read_only": "Read-only (freeze)",
"read_only_help": "Freeze the drive entirely — every mutation is refused (uploads, edits, deletes, renames, sharing, membership changes). Reads and downloads keep working. The trash-retention janitor also pauses. Use for archives, legal holds, or account wind-downs. Only an admin can un-freeze."
}
},
"profile": {
@@ -1172,5 +1174,13 @@
"banner_title": "احصل على مساحة تخزين خاصة بك",
"banner_body": "أنت تستخدم حساب ضيف. قم بالترقية للحصول على قرص شخصي وبدء رفع الملفات.",
"banner_cta": "ترقية"
},
"drive": {
"read_only_banner": {
"title": "This drive is read-only",
"title_named": "Drive \"{{name}}\" is read-only",
"body": "Uploads, edits, deletes, renames, sharing and membership changes are refused. Reads and downloads keep working. Contact an administrator to un-freeze the drive.",
"aria": "This drive is read-only"
}
}
}