存取控制¶
Weblate 提供精細的權限系統,可透過預先定義的角色為整個執行個體指派使用者權限,也可以針對所有內容或個別專案、組件、詞彙表等,為使用者指派一組或多組權限。
專案存取控制¶
備註
在Hosted Weblate 上使用免費 Libre 方案的專案都會被設定為 公開 的。如果您想限制對您專案的存取,可以切換到付費方案。
選擇不同的 存取控制 設定,即可限制使用者只能存取個別專案。可用選項如下:
- 公開
任何人都看得到。
任何通過身分驗證的使用者都可以貢獻。
所有人都可能可以存取 VCS 儲存庫。
開放原始碼專案,或是私密或已鎖定的 Weblate 執行個體,請選擇此選項。
- 保護
任何人都看得到。
只有指定的使用者可以貢獻。
只有指定的使用者可以存取 VCS 儲存庫。
如果想提高可見度,同時仍控制誰能參與貢獻,請選擇此選項。
- 私人
僅指定的使用者可見。
只有指定的使用者可以貢獻。
只有指定的使用者可以存取 VCS 儲存庫。
對於根本不應該公開曝光的專案選擇此選項。
- 自訂
僅指定的使用者可見。
只有指定的使用者可以貢獻。
只有指定的使用者可以存取 VCS 儲存庫。
在 Hosted Weblate 上不可用。
您必須使用 網站範圍存取控制 設定所有權限。
如果您想以一種特定的、精細自訂的通道定義存取,請在您自己的Weblate執行個體上選擇這個。
可以在每個專案的設定(操作 ↓ 設定)的 存取 分頁中變更 存取 控制。
預設值也可透過設定 DEFAULT_ACCESS_CONTROL 變更。
私人和自訂專案可以開放其 公開分享 互動頁面和狀態小工具,讓任何人匿名瀏覽,而不公開專案的其他部分。這些專案預設會關閉公開分享。
備註
彙總統計包含 Private 專案與 受限組件,也涵蓋全站、語言及工作區摘要。網頁介面與 API 中的物件清單、名稱及動作仍會依權限篩選,因此這些彙總資料不會授予底層專案或組件的存取權。
備註
通用的傳入 通知掛勾 是識別資訊保密原則的明確相容性例外。若提供相符的存放庫 URL,其診斷回應會包含比對數量;若已排程更新,還會包含專案/組件代稱與 API URL。這也適用於 Private 專案及受限組件,但透過已驗證整合管理的組件除外。API URL 不會繞過存取控制,回應中也不包含任何專案內容或認證資訊。請參閱 比對 Webhook 目標。
備註
網站管理員可以使用 custom settings 來修改「公開」、「受保護」和「私有」專案中使用者可用的預設權限集。
也參考
工作空間存取控制¶
工作空間範圍的團隊說明請參閱 工作空間存取控制。
管理個別專案存取控制¶
對於 公開 、 保護 與 私人 專案:
授予使用者 管理 專案 存取權 權限(請參閱 特權清單),即可透過將其他使用者加入團隊,讓他們存取 公開、受保護 及 私密 專案(但不包括 自訂 專案)。
啟用專案功能時,若所需的內建團隊名稱已由自訂團隊使用,系統會在自訂團隊名稱後加上數字。原有成員與權限都會保留,設定頁面也會顯示重新命名的資訊。
現有團隊即使名稱重複,仍可直接編輯,不必先變更名稱。儲存專案設定時,系統會處理重複名稱:保留一個內建團隊的名稱,並在其他團隊名稱後加上數字。多出的內建團隊會轉為可編輯的自訂團隊。原有成員與權限都會保留,設定頁面也會顯示重新命名的資訊。
這些是 Weblate 提供的預設團隊;具有足夠權限的使用者可以新增或修改團隊:
- 管理
此專案的所有可用權限。
- 檢閱
在檢閱中批准翻譯。
只有啟用 檢閱工作流程 後才能使用。
只適用於 受保護 和 私密 專案:
- 翻譯
翻譯專案,並上傳離線完成的翻譯。
- 來源
編輯來源字串 (如果在 project settings 中允許的話 )及來源字串資訊。
- 語言
管理已翻譯的語言(新增或移除翻譯)。
- 詞彙表
管理詞彙表 (新增、移除和上傳條目)。
- 記憶
管理翻譯記憶。
- 螢幕擷圖
管理螢幕擷圖(新增或移除他們或與來源文字作關聯)。
- 自動翻譯
可以使用自動翻譯。
- VCS
管理 VCS 並存取匯出的儲存庫。
- 計費
存取帳單資訊與設定(請參閱 帳務 )。
這些功能位於專案選單 操作 ↓ 使用者 下的 存取控制 頁面。
提示
您可以將團隊限制於特定語言或組件,並指派指定的存取角色(請參閱 特權清單)。
Before moving a component to another project, remove it from teams defined in its current project. Moving a category requires removing its components from such teams as well. Removing the last component from a team grants its roles to the whole project, so review the team's membership and roles first.
Teams left with moved components by an earlier release show those assignments by component ID. The assignments grant no access to the destination project. You can remove them through the REST API after reviewing the effect of an empty component selection on the original project.
團隊管理員¶
在 4.15 版被加入.
Each team can have team administrators, who can add and remove users within the team. Administrators relying on this designation must satisfy the team's enforced two-factor authentication. Their team management access is suspended while they are blocked in any project covered by the team, or while a covered project requires two-factor authentication they have not configured. For a team covering multiple projects, the restriction applies to the whole team.
如果您想要建立自治團隊,此功能非常實用。
全站團隊管理¶
全站團隊管理由全域的 group.edit 權限控制。這項管理權限需要高度信任,可用來建立、編輯及刪除全站團隊,包括變更團隊的角色,以及選取的專案、組件、組件清單和語言。
指派專案和組件時,範圍不限於團隊管理員能直接存取的專案。因此,團隊管理員可以授予現有團隊成員私密專案的存取權,而不會因此取得該專案的直接存取權。
應將 group.edit 視為整個執行個體的存取權管理權限,而非僅能管理使用者已可看見的團隊或專案。若要將存取權管理委派給較小的範圍,可使用專案的 管理 團隊、工作空間管理功能,或團隊管理員。團隊管理員可新增及移除使用者,但不能變更團隊的存取範圍。
邀請新使用者¶
新增現有使用者將向他們傳送確認邀請。透過 REGISTRATION_OPEN,管理員還可以使用電子郵件邀請新使用者。受邀的使用者必須完成註冊程式才能存取該專案。
An invitation can also include team administration. The invitation states this explicitly, and the user becomes a team administrator only after accepting it. Team administrators can add or remove team members.
進行此操作不需要任何全站權限;只要具備專案範圍的存取管理權限即可(例如屬於 Administration 團隊)。
提示
如果受邀的使用者錯過了邀請的有效期,則必須建立新的邀請。
您也可以在 管理介面 的 使用者 分頁建立同類型的全站邀請。專案管理員及網站管理員還能貼上以空白分隔的電子郵件地址,一次邀請多名使用者。以同一批次建立的邀請都會使用選取的團隊;全站批次邀請也會套用選取的超級使用者旗標。
Opening the Users page requires recent identity verification, including for users with read-only access. Weblate requests a second factor when configured, or an existing sign-in credential otherwise. Verification remains valid for ten minutes and is checked again when submitting changes.
全站使用者管理由全域 user.edit 權限控制。不同於專案存取管理,這是受信任的管理權限,可編輯整個執行個體中的使用者帳號。此權限包括將受管理帳號加入或移出任何全站、工作空間或專案團隊,以及授予或撤銷超級使用者狀態,即使是呼叫者自己的帳號也不例外。這些動作不需要 管理團隊 權限,也不需要對受影響團隊具備個別權限。
請將 user.edit 視為實質等同於超級使用者存取權,而不是有限的技術支援權限。如需在較小範圍內委派存取管理,請改用專案 Administration 團隊或 團隊管理員。
網站管理員也可以停用使用者的密碼驗證。重新產生 API 金鑰 選項預設為啟用,因此目前的個人 API 金鑰會停止運作。只有在目前的 API 金鑰應保持作用中時,才清除此選項。
批次邀請會逐一處理。無效地址及已有待處理邀請的地址會略過,其餘有效邀請仍會建立並傳送。
在 5.0 版的變更: Weblate 現在不會自動建立帳號或將使用者新增至團隊。這只會在使用者確認後完成。
Account security findings¶
In Manage → Users, select Validate leaked
passwords to upload a CSV report containing usernames or e-mail addresses and
passwords. This requires the global user.edit permission and recent identity
verification. Reports and findings are shared with other administrators who have
this permission. Opening the security report or an individual finding also
requires recent identity verification.
The CSV upload form opens on a separate page after identity verification. If verification expires before the upload is submitted, confirm your identity again and select the file for another upload. Weblate does not retain uploads rejected because verification expired.
Weblate detects common delimiters and credential column names automatically. If detection fails, configure the delimiter, whether the file has a header, and the column numbers, starting from one. Use UTF-8 files of at most 10 MiB and 50,000 data rows. The uploaded file remains available for configuration for one hour. Validation runs in the background and redirects to stored findings when complete. The summary counts unknown or ambiguous accounts, unusable passwords, malformed or duplicate entries, and matching or nonmatching passwords.
Identifiers are matched against exact usernames, primary e-mail addresses, and verified secondary e-mail addresses. E-mail matching uses the same normalization as account recovery. Inactive users and bot accounts are included. Ambiguous identifiers are not used for password resets. Only confirmed matches become findings. Passwords are never displayed or stored in findings; the uploaded credentials are temporarily encrypted and deleted after processing or expiry.
The Security report link appears once findings or validation reports exist. Findings remain available with their history after handling them. Filter by status, type, or scan. Select Validation reports to return to previous uploads, including reports with no matches and reports still running or that failed. Reports record the uploaded filename and the administrator who submitted it. Individual reports include resolved and dismissed findings by default. Finding history links to each report that detected the issue, and finding details list these reports under Detected in reports. Use the breadcrumbs to move between user management, the security report, validation reports, and findings.
Open findings on the current page are selected by default. Select or clear checkboxes in the browser, then submit an action. Actions apply only to checked findings shown on that page; selections do not carry across pages. Bulk actions require confirmation:
Reset passwords for selected accounts disables matching local passwords, invalidates sessions, revokes all API tokens, and notifies accounts with an e-mail address. Single sign-on and two-factor authentication settings are preserved. Passwords changed since validation are skipped and their obsolete findings resolved.
Dismiss selected findings records the administrator's decision without changing credentials or notifying the account. A later upload confirming the exposure reopens the finding; retrying the same scan does not.
The deployment check weblate.W052 warns while open findings exist. Resolve or
dismiss them in the report to clear the warning. A matching credential establishes
that the current password was present in the report; it does not establish where
it was exposed.
An upgrade check also reports verified e-mail addresses that match their account's primary address only under the database's former locale-sensitive comparison. These findings indicate a possible earlier account compromise. The address remains usable until an administrator reviews the finding. The Remove lookalike e-mail identities and reset selected accounts action removes the suspect verified address and associated sign-in identity, disables the account password, invalidates sessions, revokes API tokens, and notifies the primary address. Dismiss a finding only after confirming that the address is intentionally linked to the account.
封鎖使用者¶
在 4.7 版被加入.
If users misbehave in your project, you can block them from contributing. Blocked users cannot access the project or use their project permissions, including project administration permissions. Site superusers are exempt.
Blocking preserves team memberships. Permissions granted by those memberships apply again when the block expires or is removed. Blocking does not cancel background work that was already authorized or remove existing administrative configuration, such as add-ons.
Remove a user's project administration or team administration rights before blocking them. Weblate rejects new blocks on administrators and direct administrative team assignments to users blocked in a covered project. Changes to broader team roles or project scope can still create such a combination; the block continues to suppress project permissions in that case. Project blocks do not revoke independent workspace permissions.
清除使用者貢獻¶
封鎖垃圾訊息或濫用帳號時,專案管理員也可以清除該使用者在該專案中的既有貢獻。使用 操作 ↓ 使用者,封鎖使用者,並在封鎖表單中選取清除動作。對於已封鎖的使用者,請在已封鎖使用者清單中使用 清除使用者貢獻。
可用的清除動作如下:
還原使用者編輯 會還原該使用者最近且仍可編輯的翻譯。
拒絕使用者建議 會拒絕該使用者待處理的建議。
刪除使用者留言 會刪除該使用者的留言。
具備全站 user.edit 權限的網站管理員,也可以從 管理介面 的 使用者 分頁,跨所有專案執行相同的批次清除。開啟使用者的個人資料、選取 編輯 分頁,再使用 貢獻清除。
個別專案權限管理¶
您可以將專案設為 受保護 或 私密(請參閱 專案存取控制),並針對各專案 管理使用者存取權。
預設情況下,這可以防止 Weblate 授權 使用者 和 檢視者 提供 default teams 由於這些團隊所擁有的設定。這不會阻止您透過變更預設團隊,為預設團隊建立新的一個專案,或者為以下單一組件建立其他自訂設定,或者如 網站範圍存取控制 所描述。
其中一個透過 Weblate 使用者介面管理權限的主要好處是,您可以將其委派給其他使用者,而不需要給予他們超級使用者權限。為了這樣做,請將他們加入專案的 管理 團隊。
此專案範圍的委派與全站 user.edit 權限彼此獨立。專案 Administration 團隊的成員只能管理該專案的存取權;user.edit 則授予在 Weblate 使用者介面及 API 中管理全站使用者的權限,因此只能指派給完全受信任的網站管理員。
個別專案存取權杖¶
在 4.10 版被加入.
您可以在 API 存取 分頁定義專案範圍的存取權杖。API 權杖可以設定到期日,也能像使用者一樣透過團隊成員資格自訂權限。
網站範圍存取控制¶
備註
此功能在 Hosted Weblate 上不可用。
權限系統以角色及團隊為基礎:角色定義一組權限,團隊則將角色與使用者及翻譯關聯。詳細說明請參閱 使用者,角色,團隊與權限。
Weblate 存取控制系統最強大的功能可以在 管理介面 進行設定。您可以使用它來管理任何專案的權限。您不一定要將它切換到 自訂 存取控制 來使用它。但是您必須有超級使用者權限才能使用它。
如果您對實作的細節不感興趣,只是想建立一個基於預設值的足夠簡單的設定,或者不能存取整個 Weblate 安裝(如 Hosted Weblate),請參閱 管理個別專案存取控制 部分。
網站範圍權限管理¶
要一次管理整個執行個體的權限,請將使用者新增到合適的 default teams:
您應該使所有專案設定為 公開 (請參閱 專案存取控制 ),否則網站層級的權限將對 使用者 與 檢閱者 不會有任何影響。
You may also grant additional permissions to the default teams. To change a built-in role for every team using it, customize its permissions as described in 預設團隊和角色. For example, adding screenshot permissions to Power user affects the Users team and any other teams assigned that role.
To change permissions for only one team, create a custom role and assign it to that team. Custom roles remain independent of upstream defaults. To reduce a team's permissions, replace or remove its existing roles as needed; adding a narrower role does not revoke permissions granted by another role.
您也可以定義一些新的自訂團隊。如果您想繼續管理這些團隊的網站範圍內的權限,請選擇適當的 專案 選擇(如 所有 專案 或 所有 公開專案 )。
為語言、組件或專案自訂權限¶
您可以建立自己的專用團隊來管理不同物件(如語言,組件和專案)的權限。您不能透過新增一組自訂的團隊來撤銷任何來自全站設定的權限或某一團隊的權限,即使這些團隊只能授予額外的權限。
範例:
將翻譯為 捷克文 的權限限制於選取的譯者,同時對其他語言維持公開翻譯:
移除所有使用者翻譯 捷克文 的權限。在預設設定中,可以修改 使用者 預設團隊 來完成。內建團隊會在團隊管理介面中拒絕這項變更,請改用 Django 管理介面。
群組 使用者¶ 所有語言
已關閉
語言
除 捷克語 以外
為 捷克語翻譯者 新增專門團隊。
捷克語翻譯者 群組¶ 角色
超級使用者
專案選取
所有公開專案
所有語言
已關閉
語言
捷克語
新增團隊中您希望賦予權限的使用者。
這種權限管理方式功能強大,但也可能相當繁瑣。只有授予其他使用者超級使用者狀態,才能將這項工作委派給他們。
使用者,角色,團隊與權限¶
身分驗證模型由幾個物件組成:
- 權限
Weblate 定義的個別權限。權限不能直接指派給使用者,只能透過角色指派。
- 角色
角色會定義一組權限,並可在多處重複使用。
- 使用者
一個使用者可隸屬於多個團隊。
- 群組
群組用身分驗證物件(專案、語言、組件和組件清單)連結角色和使用者。
備註
一個團隊可以沒有分配角色,在這種情況下,假設任何人能存取專案(見下文)。
專案瀏覽存取¶
使用者必須為團隊成員並團隊連結到專案或任何組件的成員。擁有成員身分就足夠了,瀏覽專案不需要特定的權限(這被用於預設的 檢視者 小組,見 團隊清單 )。
組件瀏覽存取¶
授予使用者某個專案的瀏覽權限後,使用者就能存取所有從該專案繼承瀏覽權限的組件。啟用 受限制的存取 後,一般組件存取必須獲得明確授權。具有 編輯專案設定 權限的使用者也能瀏覽該專案的所有組件。
團隊範圍¶
團隊中各角色所指派權限的作用範圍,會依下列規則套用:
如果團隊指定任何 組件 清單,所有在團隊已賦予到成員的權限也將賦權在團隊裡組件清單中的所有組件。若無額外指定的權限在所有的專案,這些組件在 組件 與 專案 會被忽略。
使用龐大的組件清單可能會對效能產生影響,請考慮透過專案提供存取權限。
如果團隊指定了任何 組件,則授予團隊成員的所有權限都會套用至附加到該團隊的全部組件;這些組件所屬的專案也會獲得不含額外權限的存取權。此時會忽略 專案 設定。
否則,如果團隊指定了任何 專案,無論是直接列出它們還是將 專案選擇 設定為類似 所有公開專案 的值,所有這些權限都套用於所有專案,這實際上授予了存取所有專案的相同權限 unrestricted components。
The restrictions imposed by a team’s Languages are applied separately, when it’s verified if a user has access to perform certain actions. Namely, it’s applied only to actions directly related to the translation process itself like reviewing, saving translations, adding suggestions, and creating new translations. Requesting a language from maintainers does not create a translation and remains available outside the team's language selection.
個別團隊成員資格可進一步將這些權限限制於選取的語言。將個別成員的語言限制留空,表示除團隊語言選項外不再施加其他限制。邀請新使用者加入專案團隊時,也可設定相同的語言限制。設定個別成員的語言限制後,該成員資格只會授予可針對其中一種語言評估的權限;該團隊的專案層級、組件層級及全域權限不會授予該成員。
整批下載翻譯時,每份翻譯都適用這些規則。專案、類別、組件、組件清單與工作空間的壓縮檔,只會包含使用者具有 下載翻譯檔案 權限的組件與語言。因此,即使使用者可以下載同一專案中未限制存取的組件,仍須明確獲得受限組件的這項權限,才能下載該組件。
提交、推送、重設及更新所需的 VCS 權限,會依擁有該儲存庫的組件判定。成員必須在擁有者組件具備全組件權限,即使是從另一個專案中的連結組件發起操作也一樣。連結組件上的權限既不會授予這項權限,也不會限制擁有者已授權的使用者。每位成員的語言限制無法授予這些權限。
連結組件即表示接受擁有者對共用工作目錄的管理權限。儲存庫操作會影響整個工作目錄及其連結組件,但不會授予原本無法存取的組件頁面權限。
專案層級的儲存庫狀態與操作,會涵蓋成員在擁有者組件具備權限的儲存庫。其他儲存庫會另外列出,不會檢查或變更。若專案中沒有任何儲存庫可供操作,該操作就會遭到拒絕。
管理報表 權限適用於選取報表範圍內的所有內容。此權限可讓使用者存取受限組件的報表資料;在工作空間範圍內,即使使用者平常看不到私有專案及其下層項目,也能存取相關資料。只授予信任其可存取該範圍內所有報表資料的使用者。若工作空間中的任何專案強制使用雙因素驗證,一般使用者必須先完成設定,才能查看完整的工作空間報表。超級使用者和機器人帳號不受此限制。
編輯組件設定 權限允許執行可能影響儲存庫內容的管理操作。例如,使用者可以透過組件設定選擇檔案,或安裝並設定組件附加元件。自動翻譯附加元件可以將符合條件的受限來源組件中的譯文,複製到管理者可以存取的組件中,即使該管理者無法直接存取來源組件;請參閱 附加元件。對於 連結組件,這些操作會使用完整的共用工作副本。請只將這項權限授予儲存庫擁有者信任、可使用該工作副本的使用者。一般翻譯權限不會授予這類管理存取權。
存放庫層級的 VCS 權限會保護明確的提交、推送、重設及更新操作。Weblate 針對透過已授權組件所做的翻譯變更,在背景正常提交及推送時不需要這些權限。
編輯專案設定 權限允許持續管理整個專案。專案備份會包含所有組件,包括受限組件。這項權限也允許直接存取專案的所有組件、編輯其設定、刪除組件及變更存取限制,但仍受計費限制約束。它不會授予翻譯、檢閱或下載權限。對於受限組件,這些操作權限必須來自適用範圍涵蓋該組件,或涵蓋含有該組件之組件清單的團隊;專案層級的操作權限不適用,專案管理員也不例外。專案與類別附加元件也會處理其設定範圍內所有相容的組件。請只將這項權限授予能放心讓其接觸完整專案資料,並執行上述管理操作的使用者。
附加元件設定是儲存在系統中的設定,不是儲存設定的帳號所委派的權限。如果附加元件文件說明其來源範圍可涵蓋目的組件以外的內容,組件附加元件就能使用這些外部輸入。可用的設定,以及「所有相容組件」等選項的含義,都不會因最後儲存附加元件的管理員而有所不同。日後即使設定者的權限或帳號有變動,附加元件仍會繼續執行;撤銷存取權時,請另外檢查或移除這些設定。
提示
使用 所有 語言 或 專案 選取,即可自動納入所有語言或專案。
範例:
在下列團隊中,專案
foo含有foo/bar和foo/baz組件,並具備檢閱及管理權限:
群組 西班牙語管理檢閱員¶ 角色
檢閱字串、管理儲存庫
組件
foo/bar
語言
西班牙語
該團隊的成員將有這些權限(假設使用預設角色設定):
對整個專案
foo的一般(瀏覽)存取,包括其中的兩個組件:foo/bar和foo/baz。檢閱
foo/bar中的西班牙文翻譯字串(不包括其他位置)。管理整個
foo/bar儲存庫的版本控制系統,例如提交所有語言的譯者所做的待處理變更。
自動團隊分派¶
While editing the Team, you can specify Automatic assignments, which is a list of regular expressions used to automatically assign newly created users to a team based on their e-mail addresses. Rules are evaluated only upon account creation, for every new user on the instance.
For project and workspace teams, matching rules create invitations. Users receive an e-mail identifying automatic team assignment as the source and must accept the invitation before joining. Pending invitations are also available in account settings. Accounts without an e-mail address see the invitation only in account settings. Team managers can see pending invitations.
For site-defined teams, matching users are added directly. This includes the default teams. Existing memberships are not changed by this behavior.
該功能最常見的使用案例是將所有新使用者指派給某個預設團隊。此行為用於預設的 使用者 和 訪客 團隊(請參閱 團隊清單)。使用正規表達式 ^.*$ 來相符所有使用者。
此選項的另一個用途,是預設授予公司員工額外權限。假設所有員工都使用公司網域的電子郵件地址,就能以 ^.*@mycompany.com 之類的表示式完成設定。
備註
從一個 Weblate 版本升級到另一個版本時,總是會重新建立對 使用者 和 檢視者 的使用者團隊指派。如果您想關閉它,將正規表達式設定為 ^$ (不比對任何內容)。
備註
透過使用者介面批次邀請會建立邀請。既有使用者仍須確認邀請,才會成為團隊成員。
預設團隊和角色¶
安裝後,將建立一組預設的團隊(請參閱 團隊清單)。
These roles and teams are created upon installation. Administrators can edit built-in role permissions in the management interface or through the REST API. Built-in roles have fixed names and cannot be deleted. The role list identifies built-in roles and indicates whether their permissions are customized. Editing a role affects every team assigned that role. You no longer need to create a custom role solely to change built-in defaults; use a custom role when you need an independent permission set for selected teams.
During upgrades, database migrations merge changes to the built-in defaults with your assigned permissions. Locally added permissions remain assigned, and locally removed permissions remain excluded. New upstream permissions are added, and permissions removed from upstream defaults are removed. Custom roles are unchanged. The merge compares permission sets, not editing history: keeping an existing default permission does not record a separate local addition. If an upstream permission is removed and later reintroduced, it is treated as a new upstream addition. A previous local removal does not survive the permission's intervening absence from upstream defaults.
To discard customizations, select built-in roles and use Reset built-in roles to defaults in the management interface, then confirm the reset. Resetting applies the current upstream defaults to all teams using those roles.
在 2026.11 版的變更: Built-in role permissions became editable. On the first upgrade to this version, existing built-in roles are assumed to be synchronized and receive the current defaults. Earlier changes made through the API or database are replaced. Subsequent upgrades preserve local customizations.
Existing custom roles named Discover users or View user profiles are
renamed with a (custom) suffix before the new built-in roles are created.
A numbered suffix is used if that name is already taken. Their permissions
and team assignments are preserved.
Confidential collaboration¶
The resource permission contribution.view_author controls contributor
attribution in translation history, comments, suggestions, activity, feeds, and
the REST API. Built-in translation and review roles grant it by default,
including Administration. History and attribution remain stored;
hiding identities does not remove changes, timestamps, diffs, or revert actions.
也參考
Configuring confidential collaboration for the combined role and team configuration.
Regenerated translation exports require translation.download and remain
available without contributor identity access when the exporter explicitly
supports identity-safe output. Original files, original-file archives, and
unclassified exporters also require contribution.view_author because their
metadata can contain contributor identities. The built-in Access
repository and Manage languages roles grant contributor identity
access to preserve their original-file download capability. Remove this grant
from those roles too when configuring confidential collaboration.
The following inventory summarizes independent identity disclosure paths:
表面 |
Authorization |
|---|---|
Editor attribution, history, comments, suggestions, feeds, notifications |
|
Regenerated content exports |
|
Original files and unclassified exports |
Download permission and contributor identity access |
Independent |
|
Full reports and change downloads |
Independent |
Own-data reports |
The report creator, limited to their own contributions |
Membership, directory, and profile information |
Existing access-management and user permissions |
Workspace-only attribution |
|
Unscoped global attribution |
Site administrators |
Administrator-configured add-on searches |
Persistent administrative configuration, independent of direct contributor access |
Administrator-configured integrations |
Trusted destinations; contributor identities are retained |
Author filters in full reports and change downloads use their independent
reports.view and change.download permissions, including when
contribution.view_author is removed.
Workspace grants do not override project, component, or language restrictions when a history entry has a more specific resource scope.
Original archives omit auxiliary files when their translation scope is not allowed. Auxiliary files without a translation scope require component-wide download and contributor identity permissions.
Configured add-ons retain their administrative search scope, just as they do for restricted components. Removing a configuring user's contributor identity access does not disable the saved operation.
Individual notifications use the recipient's permissions. Administrator-managed integrations, including webhooks and Slack, are trusted exports and can retain contributor identities. Configure their destinations for an appropriately restricted audience, or disable them. Weblate cannot control onward sharing or remove copies already delivered to mailboxes, downloaded files, or external systems.
This feature hides system-provided attribution, not identifying text entered by users in translations, comments, announcements, filenames, or other content. It does not provide comprehensive anonymity or prevent correlation using timing and content. See Privacy configuration for the separate Git commit identity, profile, and discovery controls.
特權清單¶
範圍 |
權限 |
內建角色 |
|---|---|---|
貢獻者 |
View contributor identities |
Administration |
編輯來源 |
||
Add suggestion |
||
存取儲存庫 |
||
超級使用者 |
||
翻譯協調者 |
||
檢閱字串 |
||
翻譯 |
||
管理語言 |
||
變更 |
下載變更 |
Administration |
評論 |
發佈評論 |
Administration |
編輯來源 |
||
超級使用者 |
||
翻譯協調者 |
||
檢閱字串 |
||
翻譯 |
||
刪除評論 |
Administration |
|
解決評論 |
Administration |
|
翻譯協調者 |
||
檢閱字串 |
||
組件 |
編輯組件設定 |
Administration |
鎖定組件,防止翻譯 |
Administration |
|
管理儲存庫 |
||
詞彙表 |
新增詞彙表條目 |
Administration |
管理詞彙表 |
||
超級使用者 |
||
翻譯協調者 |
||
增加詞彙表專有名詞 |
Administration |
|
管理詞彙表 |
||
翻譯協調者 |
||
編輯詞彙表條目 |
Administration |
|
管理詞彙表 |
||
超級使用者 |
||
翻譯協調者 |
||
刪除詞彙表條目 |
Administration |
|
管理詞彙表 |
||
超級使用者 |
||
翻譯協調者 |
||
上傳詞彙表條目 |
Administration |
|
管理詞彙表 |
||
超級使用者 |
||
翻譯協調者 |
||
翻譯服務 |
使用自動建議 |
Administration |
編輯來源 |
||
超級使用者 |
||
翻譯協調者 |
||
檢閱字串 |
||
翻譯 |
||
翻譯記憶 |
編輯翻譯記憶 |
Administration |
管理翻譯記憶 |
||
刪除翻譯記憶 |
Administration |
|
管理翻譯記憶 |
||
專案 |
編輯專案設定 |
Administration |
管理專案存取權 |
Administration |
|
報告 |
管理報告 |
Administration |
工作空間管理 |
||
螢幕擷圖 |
新增螢幕擷圖 |
Administration |
翻譯協調者 |
||
管理螢幕擷圖 |
||
編輯螢幕擷圖 |
Administration |
|
翻譯協調者 |
||
管理螢幕擷圖 |
||
刪除螢幕擷圖 |
Administration |
|
翻譯協調者 |
||
管理螢幕擷圖 |
||
來源字串 |
編輯額外字串資訊 |
Administration |
編輯來源 |
||
字串 |
新增新字串 |
Administration |
移除字串 |
Administration |
|
略過未通過檢查 |
Administration |
|
編輯來源 |
||
超級使用者 |
||
翻譯協調者 |
||
檢閱字串 |
||
翻譯 |
||
編輯字串 |
Administration |
|
編輯來源 |
||
超級使用者 |
||
翻譯協調者 |
||
檢閱字串 |
||
翻譯 |
||
檢閱字串 |
Administration |
|
翻譯協調者 |
||
檢閱字串 |
||
批次編輯字串 |
Administration |
|
批量編輯 |
||
強制使用建議時仍可直接編輯字串 |
Administration |
|
翻譯協調者 |
||
檢閱字串 |
||
編輯來源字串 |
Administration |
|
編輯來源 |
||
超級使用者 |
||
翻譯協調者 |
||
建議 |
接受建議 |
Administration |
編輯來源 |
||
超級使用者 |
||
翻譯協調者 |
||
檢閱字串 |
||
翻譯 |
||
新增建議 |
Administration |
|
編輯來源 |
||
Add suggestion |
||
超級使用者 |
||
翻譯協調者 |
||
檢閱字串 |
||
翻譯 |
||
刪除建議 |
Administration |
|
超級使用者 |
||
翻譯協調者 |
||
對建議投票 |
Administration |
|
編輯來源 |
||
超級使用者 |
||
翻譯協調者 |
||
檢閱字串 |
||
翻譯 |
||
翻譯 |
加入新語言的翻譯 |
Administration |
超級使用者 |
||
翻譯協調者 |
||
管理語言 |
||
執行自動翻譯 |
Administration |
|
自動翻譯 |
||
刪除既有的翻譯 |
Administration |
|
管理語言 |
||
下載翻譯檔案 |
Administration |
|
編輯來源 |
||
存取儲存庫 |
||
超級使用者 |
||
翻譯協調者 |
||
檢閱字串 |
||
翻譯 |
||
管理語言 |
||
加入多種新語言的翻譯 |
Administration |
|
管理語言 |
||
上傳 |
定義上傳翻譯的作者 |
Administration |
以上傳內容覆寫現在的翻譯 |
Administration |
|
編輯來源 |
||
超級使用者 |
||
翻譯協調者 |
||
檢閱字串 |
||
翻譯 |
||
上傳翻譯 |
Administration |
|
編輯來源 |
||
超級使用者 |
||
翻譯協調者 |
||
檢閱字串 |
||
翻譯 |
||
VCS |
存取內部儲存庫 |
Administration |
存取儲存庫 |
||
超級使用者 |
||
翻譯協調者 |
||
管理儲存庫 |
||
將變更提交到內部儲存庫 |
Administration |
|
管理儲存庫 |
||
從內部儲存庫推送變更 |
Administration |
|
管理儲存庫 |
||
重設內部儲存庫中的變更 |
Administration |
|
管理儲存庫 |
||
檢視上游儲存庫的位置 |
Administration |
|
存取儲存庫 |
||
超級使用者 |
||
翻譯協調者 |
||
管理儲存庫 |
||
更新內部儲存庫 |
Administration |
|
管理儲存庫 |
||
公告 |
發佈公告 |
Administration |
翻譯協調者 |
||
刪除公告 |
Administration |
|
翻譯協調者 |
||
工作空間 |
編輯工作空間設定 |
工作空間管理 |
新增專案至工作空間 |
工作空間管理 |
|
新增工作空間專案 |
||
管理工作空間存取權 |
工作空間管理 |
|
全網站範圍的特權 |
Browse users |
Discover users |
Search resource contributors |
Discover users |
|
View user profiles |
View user profiles |
|
使用管理介面 |
||
管理網站設定 |
||
加入新的專案 |
新增新專案 |
|
新增新的工作空間 |
新增新專案 |
|
加入語言定義 |
||
管理語言定義 |
||
管理團隊 |
||
檢視團隊資訊 |
||
管理使用者 |
||
檢視使用者資訊 |
||
管理角色 |
||
檢視角色資訊 |
||
管理公告 |
||
管理翻譯記憶 |
||
管理翻譯服務 |
||
管理組件清單 |
||
管理付款 |
||
管理網站端的附加元件 |
警告
角色沒有個別的範圍;角色所含的權限會決定其範圍。若某角色包含 全站權限 下列出的權限,透過全站團隊指派該角色時,就會在整個 Weblate 執行個體中授予該權限。團隊所選取的專案不會縮小這些權限的適用範圍。
Site-wide privileges are not granted to any default role. Treat any roles
containing them, including customized built-in roles, as trusted administrative
access because some are effectively equivalent to superuser status. For example, group.edit
allows changing team scope to grant access to private projects, and
user.edit allows users to change their own team memberships and grant
themselves superuser status. See 全站團隊管理 and
site-wide user management for details.
內建角色清單¶
Discover users |
|
View user profiles |
|
管理 |
|
編輯來源 |
|
新增建議 |
|
存取儲存庫 |
|
管理詞彙表 |
|
超級使用者 |
|
翻譯協調員 |
|
檢閱字串 |
|
翻譯 |
|
管理語言 |
|
批量編輯 |
|
自動翻譯 |
|
管理翻譯記憶 |
|
管理螢幕擷圖 |
|
管理儲存庫 |
|
工作空間管理 |
|
新增工作空間專案 |
|
新增新專案 |
|
團隊清單¶
下列團隊會在安裝時(或執行 setupgroups 後)建立,您可以自由修改。不過,如果刪除這些團隊或重新命名,資料庫移轉時會重新建立它們。
- 訪客
定義未經身分驗證的使用者權限。
這個團隊只包括匿名使用者(請參閱
ANONYMOUS_USER_NAME)。從這個團隊移除角色,即可限制未經身分驗證使用者的權限。
Default roles: Add suggestion, Access repository, View user profiles
- 檢視者
這個角色可確保所有使用者都能看到公開專案。依預設,所有使用者都是這個團隊的成員。
依預設,自動團隊指派 會在新帳號加入時,使其成為這個團隊的成員。
預設角色:無
- 使用者
所有使用者的預設群組。
依預設,自動團隊指派 會在新帳號加入時,使其成為這個團隊的成員。
Default roles: Power user, Discover users, View user profiles
- 檢閱者
檢閱者群組(請參閱 翻譯工作流程 )。
預設角色: 檢閱字串
- 管理員
管理員專用群組。
預設角色: 管理權限
- 專案建立者
在 5.1 版被加入.
可以建立新專案的使用者。
預設角色:新增新專案
警告
請勿移除預先定義的 Weblate 團隊及使用者,否則可能導致預期外的問題。如果不需要這些團隊及使用者,只要移除其所有權限即可。
進階存取限制¶
如果您想以較不公開的方式使用 Weblate,例如只允許受邀的新使用者,可以設定成只有已知使用者能夠存取。請將 REGISTRATION_OPEN 設為 False 以禁止註冊新使用者,並將 REQUIRE_LOGIN 設為 True,要求登入後才能存取網站上的所有頁面。這就是鎖定 Weblate 執行個體的基本方式。
另外,變更 DEFAULT_ACCESS_CONTROL 為 100 會使所有新建立的專案變成私密專案,需要授予明確權限。
提示
您可以使用內建的 邀請新使用者 新增使用者。
使用者帳號過期¶
每個帳號都可以設定到期日。到期後,帳號會自動停用。這項功能用於 個別專案存取權杖,也可用於一般使用者。
See Privacy configuration to configure user discovery and profile access through roles.