Skip to content

Commit

Permalink
chore!: removes view-history permission (#33042)
Browse files Browse the repository at this point in the history
Co-authored-by: Guilherme Gazzo <[email protected]>
  • Loading branch information
lucas-a-pelegrino and ggazzo committed Sep 5, 2024
1 parent be0af13 commit f9680e7
Show file tree
Hide file tree
Showing 59 changed files with 17 additions and 111 deletions.
5 changes: 5 additions & 0 deletions .changeset/lovely-trees-call.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rocket.chat/meteor": major
---

Removes `view-history` permission due to lack of usage
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ export const permissions = [
{ _id: 'view-device-management', roles: ['admin'] },
{ _id: 'view-engagement-dashboard', roles: ['admin'] },
{ _id: 'view-full-other-user-info', roles: ['admin'] },
{ _id: 'view-history', roles: ['admin', 'user', 'anonymous'] },
{ _id: 'view-joined-room', roles: ['guest', 'bot', 'app', 'anonymous'] },
{ _id: 'view-join-code', roles: ['admin'] },
{ _id: 'view-logs', roles: ['admin'] },
Expand Down
1 change: 1 addition & 0 deletions apps/meteor/server/startup/migrations/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@ import './v300';
import './v301';
import './v303';
import './v304';
import './v305';

export * from './xrun';
11 changes: 11 additions & 0 deletions apps/meteor/server/startup/migrations/v305.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { Permissions } from '@rocket.chat/models';

import { addMigration } from '../../lib/migrations';

addMigration({
version: 305,
name: 'Remove unused view-history permission',
async up() {
await Permissions.deleteOne({ _id: 'view-history' });
},
});
2 changes: 0 additions & 2 deletions packages/i18n/src/locales/af.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -2628,8 +2628,6 @@
"view-d-room_description": "Toestemming om direkte boodskappe te sien",
"view-full-other-user-info": "Bekyk volledige ander gebruikersinligting",
"view-full-other-user-info_description": "Toestemming om die volledige profiel van ander gebruikers te sien, insluitend die rekening skep datum, laaste login, ens.",
"view-history": "Bekyk Geskiedenis",
"view-history_description": "Toestemming om die kanaalgeskiedenis te sien",
"view-join-code": "View Sluit by Kode aan",
"view-join-code_description": "Toestemming om die kanaalkode te sien",
"view-joined-room": "Bekyk aangeslote kamer",
Expand Down
2 changes: 0 additions & 2 deletions packages/i18n/src/locales/ar.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -4558,8 +4558,6 @@
"View_full_conversation": "عرض المحادثة بالكامل",
"view-full-other-user-info": "عرض كل معلومات المستخدمين الآخرين",
"view-full-other-user-info_description": "إذن لعرض الملف الشخصي الكامل للمستخدمين الآخرين بما في ذلك تاريخ إنشاء الحساب وآخر تسجيل دخول، وما إلى ذلك.",
"view-history": "عرض المحفوظات",
"view-history_description": "إذن لعرض محفوظات القناة",
"view-join-code": "عرض رمز الانضمام",
"view-join-code_description": "إذن لعرض رمز الانضمام للقناة",
"view-joined-room": "عرض Room التي تم الانضمام إليها",
Expand Down
2 changes: 0 additions & 2 deletions packages/i18n/src/locales/az.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -2628,8 +2628,6 @@
"view-d-room_description": "Birbaşa mesajları görmək icazəsi",
"view-full-other-user-info": "Tam Digər İstifadəçi Bilgilerini Baxın",
"view-full-other-user-info_description": "Hesab yaratma tarixi, son giriş və s. Daxil olmaqla, digər istifadəçilərin tam profilini görmək üçün icazə.",
"view-history": "Tarix bax",
"view-history_description": "Kanalın tarixini görmək üçün icazə",
"view-join-code": "Görünüşü Qəbul et",
"view-join-code_description": "Kanala qoşulmaq kodunu keçirmək üçün icazə",
"view-joined-room": "Qəbul otağını göstərin",
Expand Down
2 changes: 0 additions & 2 deletions packages/i18n/src/locales/be-BY.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -2646,8 +2646,6 @@
"view-d-room_description": "Дазвол для прагляду прамых паведамленняў",
"view-full-other-user-info": "Прагляд поўнага Іншая Інфармацыя пра карыстальніка",
"view-full-other-user-info_description": "Дазвол для прагляду ў поўны профіль іншых карыстальнікаў, уключаючы дату стварэння ўліковага запісу, апошні ўваход і г.д.",
"view-history": "прагляд гісторыі",
"view-history_description": "Дазвол для прагляду гісторыі канала",
"view-join-code": "Прагледзець Рэгістрацыя код",
"view-join-code_description": "Дазвол для прагляду канала далучыцца код",
"view-joined-room": "Паглядзець Дата нумар",
Expand Down
2 changes: 0 additions & 2 deletions packages/i18n/src/locales/bg.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -2624,8 +2624,6 @@
"view-d-room_description": "Разрешение за преглеждане на директни съобщения",
"view-full-other-user-info": "Преглед на пълната друга информация за потребителя",
"view-full-other-user-info_description": "Разрешение за преглед на пълния потребителски профил на други потребители, включително датата на създаване на сметката, последното влизане и др.",
"view-history": "Преглед на историята",
"view-history_description": "Разрешение за преглед на историята на канала",
"view-join-code": "Вижте кода за присъединяване",
"view-join-code_description": "Разрешение за преглеждане на кода за присъединяване на канала",
"view-joined-room": "Преглед на присъединилата се стая",
Expand Down
2 changes: 0 additions & 2 deletions packages/i18n/src/locales/bs.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -2621,8 +2621,6 @@
"view-d-room_description": "Dopuštenje za prikaz izravnih poruka",
"view-full-other-user-info": "Pogledajte ostale korisničke informacije",
"view-full-other-user-info_description": "Dopuštenje za pregled cijelog profila drugih korisnika, uključujući datum stvaranja računa, posljednju prijavu itd.",
"view-history": "Prikaži povijest",
"view-history_description": "Dopuštenje za prikaz povijesti kanala",
"view-join-code": "Pogledajte pridruživanje kodu",
"view-join-code_description": "Dopuštenje za pregled kanala za pridruživanje kanalu",
"view-joined-room": "Pogledajte povezanu sobu",
Expand Down
2 changes: 0 additions & 2 deletions packages/i18n/src/locales/ca.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -4466,8 +4466,6 @@
"View_full_conversation": "Veure conversa completa",
"view-full-other-user-info": "Veure tota la info d'usuaris",
"view-full-other-user-info_description": "Permís per veure el perfil complet d'altres usuaris, incloent la data de creació del compte, el darrer accés, etcètera.",
"view-history": "Veure historial",
"view-history_description": "Permís per veure l'historial del canal",
"view-join-code": "Veure el codi per unir-se",
"view-join-code_description": "Permís per veure el codi per unir-se al canal",
"view-joined-room": "Veure Room unida",
Expand Down
2 changes: 0 additions & 2 deletions packages/i18n/src/locales/cs.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -3787,8 +3787,6 @@
"view-d-room_description": "Právo zobrazit soukromé zprávy",
"view-full-other-user-info": "Zobrazit veškeré informace uživatele",
"view-full-other-user-info_description": "Právo zobrazit veškeré informace uživatele včetně data vytvoření, posledního přihlášení, atd.",
"view-history": "Zobrazit historii",
"view-history_description": "Právo zobrazit historii místnosti",
"view-join-code": "Zobrazit kód místnosti",
"view-join-code_description": "Právo zobrazit kód místnosti",
"view-joined-room": "Zobrazit připojené místnosti",
Expand Down
2 changes: 0 additions & 2 deletions packages/i18n/src/locales/cy.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -2622,8 +2622,6 @@
"view-d-room_description": "Caniatâd i weld negeseuon uniongyrchol",
"view-full-other-user-info": "Edrychwch ar Wybodaeth Defnyddiwr Llawn Arall",
"view-full-other-user-info_description": "Caniatâd i weld proffil llawn defnyddwyr eraill gan gynnwys dyddiad creu cyfrif, mewngofnodi diwethaf, ac ati.",
"view-history": "Gweld Hanes",
"view-history_description": "Caniatâd i weld hanes y sianel",
"view-join-code": "Gweld Ymuno â'r Cod",
"view-join-code_description": "Caniatâd i weld y sianel ymuno â'r cod",
"view-joined-room": "Gweld yr Ystafell Gyfun",
Expand Down
2 changes: 0 additions & 2 deletions packages/i18n/src/locales/da.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -3896,8 +3896,6 @@
"view-d-room_description": "Tilladelse til at se direkte meddelelser",
"view-full-other-user-info": "Se fuld anden brugerinformation",
"view-full-other-user-info_description": "Tilladelse til at se fuld profil for andre brugere, herunder oprettelse af konto, sidste login osv.",
"view-history": "Se historik",
"view-history_description": "Tilladelse til at se kanalhistorikken",
"view-join-code": "View Tilmeld Kode",
"view-join-code_description": "Tilladelse til at se kanalens adgangskode",
"view-joined-room": "Se det tilsluttede rum",
Expand Down
2 changes: 0 additions & 2 deletions packages/i18n/src/locales/de-AT.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -2630,8 +2630,6 @@
"view-d-room_description": "Berechtigung zum Anzeigen von direkten Nachrichten",
"view-full-other-user-info": "Vollständige Benutzerinformationen anzeigen",
"view-full-other-user-info_description": "Berechtigung zum Anzeigen des vollständigen Profils anderer Benutzer, einschließlich Kontoerstellungsdatum, letzte Anmeldung usw.",
"view-history": "Siehe Verlauf",
"view-history_description": "Berechtigung zum Anzeigen des Kanalverlaufs",
"view-join-code": "Zeigen Sie den Verbindungscode an",
"view-join-code_description": "Berechtigung zum Anzeigen des Channel-Join-Codes",
"view-joined-room": "Verbundenen Raum anzeigen",
Expand Down
2 changes: 0 additions & 2 deletions packages/i18n/src/locales/de-IN.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -2963,8 +2963,6 @@
"view-d-room_description": "Berechtigung, Direktnachrichten zu erhalten",
"view-full-other-user-info": "Vollständige Benutzerinformation einsehen",
"view-full-other-user-info_description": "Berechtigung, die vollständigen Benutzerinformation anderer Benutzer einzusehen (inkl. Erstelldatum, letztem Login etc.)",
"view-history": "Historie anzeigen",
"view-history_description": "Berechtigung, die Kanal-Historie anzuzeigen",
"view-join-code": "Beitritts-Code anzeigen",
"view-join-code_description": "Berechtigung, den Beitritts-Code zu einem Kanal anzuzeigen",
"view-joined-room": "Beigetretenen Raum anzeigen",
Expand Down
2 changes: 0 additions & 2 deletions packages/i18n/src/locales/de.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -5130,8 +5130,6 @@
"View_full_conversation": "Vollständige Konversation anzeigen",
"view-full-other-user-info": "Vollständige Benutzerinformation einsehen",
"view-full-other-user-info_description": "Berechtigung, die vollständigen Benutzerinformation anderer Benutzer einzusehen (inkl. Erstelldatum, letztem Login etc.)",
"view-history": "Verlauf anzeigen",
"view-history_description": "Berechtigung, den Channel-Verlauf anzuzeigen",
"view-join-code": "Beitritts-Code anzeigen",
"view-join-code_description": "Berechtigung, den Beitritts-Code zu einem Channel anzuzeigen",
"view-joined-room": "Beigetretenen Room anzeigen",
Expand Down
2 changes: 0 additions & 2 deletions packages/i18n/src/locales/el.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -2635,8 +2635,6 @@
"view-d-room_description": "Άδεια προβολής άμεσων μηνυμάτων",
"view-full-other-user-info": "Δείτε όλες τις άλλες πληροφορίες χρήστη",
"view-full-other-user-info_description": "Άδεια προβολής πλήρους προφίλ άλλων χρηστών, συμπεριλαμβανομένης της ημερομηνίας δημιουργίας λογαριασμού, της τελευταίας σύνδεσης, κλπ.",
"view-history": "Προβολή ιστορικού",
"view-history_description": "Άδεια προβολής ιστορικού καναλιών",
"view-join-code": "Προβολή σύνδεσης κώδικα",
"view-join-code_description": "Άδεια προβολής του κωδικού πρόσθεσης καναλιού",
"view-joined-room": "Δείτε την ενταγμένη αίθουσα",
Expand Down
2 changes: 0 additions & 2 deletions packages/i18n/src/locales/en.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -5832,8 +5832,6 @@
"View_full_conversation": "View full conversation",
"view-full-other-user-info": "View Full Other User Info",
"view-full-other-user-info_description": "Permission to view full profile of other users including account creation date, last login, etc.",
"view-history": "View History",
"view-history_description": "Permission to view the channel history",
"onboarding.component.form.action.registerNow": "Register now",
"view-join-code": "View Join Code",
"view-join-code_description": "Permission to view the channel join code",
Expand Down
2 changes: 0 additions & 2 deletions packages/i18n/src/locales/eo.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -2628,8 +2628,6 @@
"view-d-room_description": "Permeso por vidi rektajn mesaĝojn",
"view-full-other-user-info": "Vidi Plena Aliaj Uzaj Informoj",
"view-full-other-user-info_description": "Permeso por vidi plenan profilon de aliaj uzantoj inkluzive de kreo de konto dato, lasta ensaluto, ktp.",
"view-history": "Vidi historion",
"view-history_description": "Permeso por vidi la kanalan historion",
"view-join-code": "Vidi Aliĝilon",
"view-join-code_description": "Permeso por vidi la kanalon kunigi kodon",
"view-joined-room": "Vidi Joined Room",
Expand Down
2 changes: 0 additions & 2 deletions packages/i18n/src/locales/es.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -4538,8 +4538,6 @@
"View_full_conversation": "Ver conversación completa",
"view-full-other-user-info": "Ver toda la información de otro usuario",
"view-full-other-user-info_description": "Permiso para ver el perfil completo de otros usuarios, incluida la fecha de creación de la cuenta, el último inicio de sesión, etc.",
"view-history": "Ver historial",
"view-history_description": "Permiso para ver el historial del canal",
"view-join-code": "Ver código de participación",
"view-join-code_description": "Permiso para ver el código de participación en un canal",
"view-joined-room": "Ver Room de participación",
Expand Down
2 changes: 0 additions & 2 deletions packages/i18n/src/locales/fa.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -2963,8 +2963,6 @@
"view-d-room_description": "اجازه مشاهده پیام های مستقیم",
"view-full-other-user-info": "مشاهده سایر اطلاعات کاربر",
"view-full-other-user-info_description": "اجازه مشاهده نمایه کامل سایر کاربران از جمله تاریخ ایجاد حساب، آخرین ورود و غیره",
"view-history": "مشاهده تاریخچه",
"view-history_description": "اجازه مشاهده تاریخچه کانال",
"view-join-code": "مشاهده تاریخ کد",
"view-join-code_description": "مجاز به مشاهده کد کانال کانال",
"view-joined-room": "مشاهده اتاق اعضا",
Expand Down
2 changes: 0 additions & 2 deletions packages/i18n/src/locales/fi.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -5246,8 +5246,6 @@
"View_full_conversation": "Näytä koko keskustelu",
"view-full-other-user-info": "Näytä täydelliset muut käyttäjän tiedot",
"view-full-other-user-info_description": "Oikeus tarkastella muiden käyttäjien täydellistä profiilia, mukaan lukien tilin luontipäivä, viimeinen sisäänkirjautuminen jne.",
"view-history": "Näytä historia",
"view-history_description": "Oikeus tarkastella kanavan historiaa",
"onboarding.component.form.action.registerNow": "Rekisteröidy nyt",
"view-join-code": "Näytä liittymiskoodi",
"view-join-code_description": "Oikeus tarkastella kanavan liittymiskoodia",
Expand Down
2 changes: 0 additions & 2 deletions packages/i18n/src/locales/fr.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -4556,8 +4556,6 @@
"View_full_conversation": "Afficher la conversation complète",
"view-full-other-user-info": "Voir les informations des autres utilisateurs",
"view-full-other-user-info_description": "Autorisation d'afficher le profil complet des autres utilisateurs, y compris la date de création du compte, la dernière connexion, etc.",
"view-history": "Voir l'historique",
"view-history_description": "Autorisation de consulter l'historique du canal",
"view-join-code": "Afficher le code de participation",
"view-join-code_description": "Autorisation d'afficher le code de participation au canal",
"view-joined-room": "Voir le salon rejoint",
Expand Down
2 changes: 0 additions & 2 deletions packages/i18n/src/locales/hi-IN.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -5528,8 +5528,6 @@
"View_full_conversation": "पूरी बातचीत देखें",
"view-full-other-user-info": "अन्य उपयोगकर्ता की पूरी जानकारी देखें",
"view-full-other-user-info_description": "खाता निर्माण तिथि, अंतिम लॉगिन आदि सहित अन्य उपयोगकर्ताओं की पूरी प्रोफ़ाइल देखने की अनुमति।",
"view-history": "इतिहास देखें",
"view-history_description": "चैनल इतिहास देखने की अनुमति",
"view-join-code": "जॉइन कोड देखें",
"view-join-code_description": "चैनल जॉइन कोड देखने की अनुमति",
"view-joined-room": "सम्मिलित कक्ष देखें",
Expand Down
2 changes: 0 additions & 2 deletions packages/i18n/src/locales/hr.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -2762,8 +2762,6 @@
"view-d-room_description": "Dopuštenje za prikaz izravnih poruka",
"view-full-other-user-info": "Pogledajte ostale korisničke informacije",
"view-full-other-user-info_description": "Dopuštenje za pregled cijelog profila drugih korisnika, uključujući datum stvaranja računa, posljednju prijavu itd.",
"view-history": "Prikaži povijest",
"view-history_description": "Dopuštenje za prikaz povijesti kanala",
"view-join-code": "Pogledajte pridruživanje kodu",
"view-join-code_description": "Dopuštenje za pregled kanala za pridruživanje kanalu",
"view-joined-room": "Pogledajte povezanu sobu",
Expand Down
2 changes: 0 additions & 2 deletions packages/i18n/src/locales/hu.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -5045,8 +5045,6 @@
"View_full_conversation": "Teljes beszélgetés megtekintése",
"view-full-other-user-info": "Mások teljes felhasználó-információinak megtekintése",
"view-full-other-user-info_description": "Jogosultság más felhasználók teljes profiljának megtekintéséhez, beleértve a fiók létrehozásának dátumát, az utolsó bejelentkezést stb.",
"view-history": "Előzmények megtekintése",
"view-history_description": "Jogosultság a csatorna előzményeinek megtekintéséhez",
"view-join-code": "Csatlakozási kód megtekintése",
"view-join-code_description": "Jogosultság a csatorna csatlakozási kódjának megtekintéséhez",
"view-joined-room": "Csatlakozott szoba megtekintése",
Expand Down
2 changes: 0 additions & 2 deletions packages/i18n/src/locales/id.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -2636,8 +2636,6 @@
"view-d-room_description": "Izin untuk melihat pesan langsung",
"view-full-other-user-info": "Lihat Info Pengguna Lengkap Lainnya",
"view-full-other-user-info_description": "Izin untuk melihat profil lengkap pengguna lain termasuk tanggal pembuatan akun, login terakhir, dll.",
"view-history": "Lihat Riwayat",
"view-history_description": "Izin untuk melihat riwayat saluran",
"view-join-code": "Lihat Kode Gabung",
"view-join-code_description": "Izin untuk melihat kode join channel",
"view-joined-room": "Lihat Ruang Bergabung",
Expand Down
2 changes: 0 additions & 2 deletions packages/i18n/src/locales/it.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -3215,8 +3215,6 @@
"view-d-room_description": "Autorizzazione a visualizzare i messaggi diretti",
"view-full-other-user-info": "Visualizza tutte le altre informazioni utente",
"view-full-other-user-info_description": "Autorizzazione a visualizzare il profilo completo di altri utenti tra cui data di creazione dell'account, ultimo accesso, ecc.",
"view-history": "Visualizza cronologia",
"view-history_description": "Autorizzazione a visualizzare la cronologia del canale",
"view-join-code": "Visualizza unire il codice",
"view-join-code_description": "Autorizzazione a visualizzare il codice di unione del canale",
"view-joined-room": "Visualizza camera unita",
Expand Down
2 changes: 0 additions & 2 deletions packages/i18n/src/locales/ja.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -4499,8 +4499,6 @@
"View_full_conversation": "すべての会話を表示",
"view-full-other-user-info": "他のすべてのユーザー情報の表示",
"view-full-other-user-info_description": "アカウント作成日、最終ログインなど、他のユーザーの完全なプロフィールを表示する権限",
"view-history": "履歴の表示",
"view-history_description": "チャネル履歴を表示する権限",
"view-join-code": "参加コードの表示",
"view-join-code_description": "チャネル参加コードを表示する権限",
"view-joined-room": "参加したRoomの表示",
Expand Down
2 changes: 0 additions & 2 deletions packages/i18n/src/locales/ka-GE.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -3514,8 +3514,6 @@
"view-d-room_description": "პირდაპირი შეტყობინებების ნახვის უფლება",
"view-full-other-user-info": "იხილეთ სხვა მომხმარებლის დრული ინფორმაცია",
"view-full-other-user-info_description": "სხვა მომხმარებლების სრული პროფილის ნახვის ნებართვა, მათ შორის ანგარიშის შექმნის თარიღის, ბოლო შესვლის და ა.შ.",
"view-history": "ისტორიის ნახვა",
"view-history_description": "არხის ისტორიის ნახვის ნებართვა",
"view-join-code": "იხილეთ გაწევრიანების კოდი",
"view-join-code_description": "არხში გაწევრიანების კოდის ნახვის ნებართვა",
"view-joined-room": "ნახეთ შეერთებული ოთახი",
Expand Down
Loading

0 comments on commit f9680e7

Please sign in to comment.