Control de acceso

Weblate incluye un sistema de privilegios detallado que permite asignar permisos de usuario en toda la instalación o en un ámbito limitado.

Distinto en la versión 3.0: Hasta Weblate 3.0, el sistema de privilegios se basaba únicamente en el de Django, pero ahora se ha construido específicamente para Weblate. Si utiliza una versión antigua, consulte la documentación que corresponda a esa versión.

Control de acceso simple

Si no está administrando toda la instalación de Weblate y solo tiene acceso para administrar ciertos proyectos (como en Hosted Weblate <https://hosted.weblate.org/> _), sus opciones de administración de control de acceso se limitan a las siguientes configuraciones. Si no necesita ninguna configuración compleja, será suficiente para ti.

Control de acceso al proyecto

Nota

Esta funcionalidad no está disponible para proyectos que usan el plan Libre en Hosted Weblate.

Puede limitar el acceso del usuario a proyectos individuales seleccionando una configuración diferente: guilabel: Control de acceso. Las opciones disponibles son:

Público

Visible públicamente, traducible por todos los usuarios que hayan accedido a sus cuentas.

Protegido

Visible públicamente y traducible solo por usuarios seleccionados.

Privado

Solo visible para, y traducible por, usuarios seleccionados.

Personalizado

User management features will be disabled; by default all users are forbidden to performed any actions on the project. You will have to set up all the permissions using Control de acceso personalizado.

Access control can be changed in the Access tab of the configuration (ManageSettings) of each respective project.

../_images/project-access.png

El valor predeterminado se puede cambiar mediante :setting: DEFAULT_ACCESS_CONTROL.

Nota

Incluso para los proyectos Privados, alguna información sobre su proyecto será expuesta: las estadísticas y el resumen de idiomas para toda la instancia incluirán los recuentos de todos los proyectos a pesar de la configuración del control de acceso. El nombre de su proyecto y otra información no pueden ser revelados a través de esto.

Nota

The actual set of permissions available for users by default in Public, Protected, and Private projects can be redefined by Weblate instance administrator using custom settings.

Advertencia

Al activar el control de acceso Personalizado, Weblate eliminará todos los grupos especiales que haya creado para un proyecto seleccionado. Si hace esto sin permiso de administrador para toda la instancia de Weblate, perderá instantáneamente su acceso para gestionar el proyecto.

Ver también

Control de acceso

Gestionar el control de acceso por proyecto

Los usuarios con el privilegio Gestionar el acceso al proyecto (ver privilegios) pueden gestionar usuarios en proyectos con control de acceso no Personalizado. Pueden asignar usuarios a uno de los siguientes grupos.

Para proyectos Públicos, Protegidos y Privados:

Administración

Cuenta con todos los permisos disponibles en el proyecto.

Revisión (sólo si review workflow está activado)

Puede aprobar traducciones durante la revisión.

Para proyectos protegidos y privados únicamente:

Traducir

Puede traducir el proyecto y cargar traducciones realizadas sin conexión.

Orígenes

Puede editar las cadenas de origen (si se permite en la configuración del proyecto) y la información de la cadena de origen.

Idiomas

Puede gestionar los idiomas traducibles (añadir o quitar traducciones).

Glosario

Puede gestionar el glosario (añadir o quitar entradas, o bien cargarlas).

Memoria

Puede gestionar la memoria de traducción.

Capturas de pantalla

Puede gestionar las capturas de pantalla (añadirlas o eliminarlas, así como asociarlas a cadenas de origen).

Sistema de control de versiones

Puede gestionar el sistema de control de versiones y acceder al repositorio exportado.

Facturación

Puede acceder a la información y la configuración de facturación (vea Facturación).

Desafortunadamente, no es posible cambiar este conjunto predefinido de grupos por ahora. Además, de esta manera no es posible otorgar solo algunos permisos adicionales a todos los usuarios.

Nota

Para el control de acceso no Personalizado se define realmente una instancia de cada grupo descrito anteriormente para cada proyecto. El nombre real de esos grupos será Proyecto@Grupo, que también se muestra en la interfaz de administración de Django de esta manera. Aunque no se pueden editar desde la interfaz de usuario de Weblate.

../_images/manage-users.png

Estas funciones están disponibles en la página Control de acceso, a la que se puede acceder desde el menú del proyecto GestiónUsuarios.

Invitación a usuarios nuevos

Also, besides adding an existing user to the project, it is possible to invite new ones. Any new user will be created immediately, but the account will remain inactive until signing in with a link in the invitation sent via an e-mail. It is not required to have any site-wide privileges in order to do so, access management permission on the project’s scope (e.g. a membership in the Administration group) would be sufficient.

Consejo

If the invited user missed the validity of the invitation, they can set their password using invited e-mail address in the password reset form as the account is created already.

Nuevo en la versión 3.11: It is possible to resend the e-mail for user invitations (invalidating any previously sent invitation).

The same kind of invitations are available site-wide from the management interface on the Users tab.

Blocking users

Nuevo en la versión 4.7.

In case some users behave badly in your project, you have an option to block them from contributing. The blocked user still will be able to see the project if he has permissions for that, but he won’t be able to contribute.

Gestión de permisos por proyecto

Puede definir sus proyectos como Protegido o Privado y gestionar los usuarios por proyecto en la interfaz de usuario de Weblate.

By default this prevents Weblate from granting access provided by Users and Viewers default groups due to these groups’ own configuration. This doesn’t prevent you from granting permissions to those projects site-wide by altering default groups, creating a new one, or creating additional custom settings for individual component as described in Control de acceso personalizado below.

One of the main benefits of managing permissions through the Weblate user interface is that you can delegate it to other users without giving them the superuser privilege. In order to do so, add them to the Administration group of the project.

Control de acceso personalizado

Nota

Esta funcionalidad no está disponible para proyectos que usan el plan Libre en Hosted Weblate.

The permission system is based on groups and roles, where roles define a set of permissions, and groups link them to users and translations, see Users, roles, groups, and permissions for more details.

The most powerful features of the Weblate’s access control system for now are available only through the Django admin interface. You can use it to manage permissions of any project. You don’t necessarily have to switch it to Custom access control to utilize it. However you must have superuser privileges in order to use it.

If you are not interested in details of implementation, and just want to create a simple-enough configuration based on the defaults, or don’t have a site-wide access to the whole Weblate installation (like on Hosted Weblate), please refer to the Control de acceso simple section.

Configuraciones comunes

This section contains an overview of some common configurations you may be interested in.

Site-wide permission management

To manage permissions for a whole instance at once, add users to appropriate default groups:

  • Users (this is done by default by the automatic group assignment).

  • Reviewers (if you are using review workflow with dedicated reviewers).

  • Managers (if you want to delegate most of the management operations to somebody else).

You should keep all projects configured as Public (see Control de acceso al proyecto), otherwise the site-wide permissions provided by membership in the Users and Reviewers groups won’t have any effect.

You may also grant some additional permissions of your choice to the default groups. For example, you may want to give a permission to manage screenshots to all the Users.

You can define some new custom groups as well. If you want to keep managing your permissions site-wide for these groups, choose an appropriate value for the Project selection (e.g. All projects or All public projects).

Permisos personalizados para idiomas, componentes o proyectos

You can create your own dedicated groups to manage permissions for distinct objects such as languages, components, and projects. Although these groups can only grant additional privileges, you can’t revoke any permission granted by site-wide or per-project groups by adding another custom group.

Ejemplo:

If you want (for whatever reason) to allow translation to a specific language (lets say Czech) only to a closed set of reliable translators while keeping translations to other languages public, you will have to:

  1. Remove the permission to translate Czech from all the users. In the default configuration this can be done by altering the Users default group.

    Grupo Usuarios

    Selección de idioma

    As defined

    Idiomas

    All but Czech

  1. Add a dedicated group for Czech translators.

    Grupo Traductores al checo

    Roles

    Power users

    Selección del proyecto

    Todos los proyectos públicos

    Selección de idioma

    As defined

    Idiomas

    Checo

  1. Add users you wish to give the permissions to into this group.

As you can see, permissions management this way is powerful, but can be quite a tedious job. You can’t delegate it to another user, unless granting superuser permissions.

Users, roles, groups, and permissions

Los modelos de autenticación consisten de varios objetos:

Permiso

Individual permission defined by Weblate. Permissions cannot be assigned to users. This can only be done through assignment of roles.

Role

A role defines a set of permissions. This allows reuse of these sets in several places, making the administration easier.

Usuario

Un usuario puede ser miembro de varios grupos.

Grupo

Group connect roles, users, and authentication objects (projects, languages, and component lists).

graph auth { "User" -- "Group"; "Group" -- "Role"; "Role" -- "Permission"; "Group" -- "Project"; "Group" -- "Language"; "Group" -- "Components"; "Group" -- "Component list"; }

Nota

A group can have no roles assigned to it, in that case access to browse the project by anyone is assumed (see below).

Access for browse to a project

A user has to be a member of a group linked to the project, or any component inside that project. Having membership is enough, no specific permissions are needed to browse the project (this is used in the default Viewers group, see Lista de grupos).

Access for browse to a component

A user can access unrestricted components once able to access the components’ project (and will have all the permissions the user was granted for the project). With Acceso restringido turned on, access to the component requires explicit permissions for the component (or a component list the component is in).

Ámbito de los grupos

The scope of the permission assigned by the roles in the groups are applied by the following rules:

  • If the group specifies any Component list, all the permissions given to members of that group are granted for all the components in the component lists attached to the group, and an access with no additional permissions is granted for all the projects these components are in. Components and Projects are ignored.

  • If the group specifies any Components, all the permissions given to the members of that group are granted for all the components attached to the group, and an access with no additional permissions is granted for all the projects these components are in. Projects are ignored.

  • Otherwise, if the group specifies any Projects, either by directly listing them or by having Projects selection set to a value like All public projects, all those permissions are applied to all the projects, which effectively grants the same permissions to access all projects unrestricted components.

  • The restrictions imposed by a group’s Languages are applied separately, when it’s verified if a user has an 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, etc.

Consejo

Use Language selection or Project selection to automate inclusion of all languages or projects.

Ejemplo:

Let’s say there is a project foo with the components: foo/bar and foo/baz and the following group:

Group Spanish Admin-Reviewers

Roles

Review Strings, Manage repository

Componentes

foo/bar

Idiomas

Español

Members of that group will have following permissions (assuming the default role settings):

  • General (browsing) access to the whole project foo including both components in it: foo/bar and foo/baz.

  • Review strings in foo/bar Spanish translation (not elsewhere).

  • Manage VCS for the whole foo/bar repository e.g. commit pending changes made by translators for all languages.

Asignaciones de grupo automático

On the bottom of the Group editing page in the Django admin interface, you can specify Automatic group assignments, which is a list of regular expressions used to automatically assign newly created users to a group based on their e-mail addresses. This assignment only happens upon account creation.

The most common use-case for the feature is to assign all new users to some default group. In order to do so, you will probably want to keep the default value (^.*$) in the regular expression field. Another use-case for this option might be to give some additional privileges to employees of your company by default. Assuming all of them use corporate e-mail addresses on your domain, this can be accomplished with an expression like ^.*@mycompany.com.

Nota

Automatic group assignment to Users and Viewers is always recreated when upgrading from one Weblate version to another. If you want to turn it off, set the regular expression to ^$ (which won’t match anything).

Nota

As for now, there is no way to bulk-add already existing users to some group via the user interface. For that, you may resort to using the REST API.

Default groups and roles

After installation, a default set of groups is created (see Lista de grupos).

These roles and groups are created upon installation. The built-in roles are always kept up to date by the database migration when upgrading. You can’t actually change them, please define a new role if you want to define your own set of permissions.

Lista de privilegios

Facturación (vea Facturación)

Ver información de facturación [Administración, Facturación]

Cambios

Descargar cambios [Administración]

Comentarios

Post comment [Administration, Edit source, Power user, Review strings, Translate]

Eliminar comentario [Administración]

Componente

Editar configuración de componentes [Administración]

Lock component, preventing translations [Administration]

Glosario

Añadir entrada de glosario [Administración, Gestionar glosario, Usuario avanzado]

Editar entrada de glosario [Administración, Gestionar glosario, Usuario avanzado]

Eliminar entrada de glosario [Administración, Gestionar glosario, Usuario avanzado]

Cargar entradas de glosario [Administración, Gestionar glosario, Usuario avanzado]

Sugerencias automáticas

Use automatic suggestions [Administration, Edit source, Power user, Review strings, Translate]

Memoria de traducción

Edit translation memory [Administration, Manage translation memory]

Delete translation memory [Administration, Manage translation memory]

Proyectos

Editar configuración del proyecto [Administración]

Gestionar acceso al proyecto [Administración]

Informes

Download reports [Administration]

Capturas de pantalla

Add screenshot [Administration, Manage screenshots]

Edit screenshot [Administration, Manage screenshots]

Delete screenshot [Administration, Manage screenshots]

Cadenas de origen

Edit additional string info [Administration, Edit source]

Cadenas

Add new string [Administration]

Remove a string [Administration]

Ignore failing check [Administration, Edit source, Power user, Review strings, Translate]

Edit strings [Administration, Edit source, Power user, Review strings, Translate]

Review strings [Administration, Review strings]

Edit string when suggestions are enforced [Administration, Review strings]

Edit source strings [Administration, Edit source, Power user]

Sugerencias

Accept suggestion [Administration, Edit source, Power user, Review strings, Translate]

Add suggestion [Administration, Edit source, Add suggestion, Power user, Review strings, Translate]

Delete suggestion [Administration, Power user]

Vote on suggestion [Administration, Edit source, Power user, Review strings, Translate]

Traducciones

Add language for translation [Administration, Power user, Manage languages]

Perform automatic translation [Administration, Manage languages]

Delete existing translation [Administration, Manage languages]

Add several languages for translation [Administration, Manage languages]

Cargas

Define author of uploaded translation [Administration]

Overwrite existing strings with upload [Administration, Edit source, Power user, Review strings, Translate]

Upload translations [Administration, Edit source, Power user, Review strings, Translate]

Sistema de control de versiones

Access the internal repository [Administration, Access repository, Power user, Manage repository]

Commit changes to the internal repository [Administration, Manage repository]

Push change from the internal repository [Administration, Manage repository]

Reset changes in the internal repository [Administration, Manage repository]

View upstream repository location [Administration, Access repository, Power user, Manage repository]

Actualizar el repositorio interno [Administración, Gestionar repositorio]

Privilegios en todo el sitio

Utilizar interfaz de gestión

Añadir proyectos nuevos

Añadir definiciones de idioma

Gestionar definiciones de idioma

Gestionar grupos

Administrar usuarios

Gestionar roles

Gestionar anuncios

Gestionar memoria de traducción

Gestionar listas de componentes

Nota

Site-wide privileges are not granted to any default role. These are powerful and quite close to superuser status. Most of them affect all projects in your Weblate installation.

Lista de grupos

The following groups are created upon installation (or after executing setupgroups) and you are free to modify them. The migration will, however, re-create them if you delete or rename them.

Guests

Define los permisos que tendrán los usuarios no autenticados.

Este grupo contiene solo usuarios anónimos (vea ANONYMOUS_USER_NAME).

You can remove roles from this group to limit permissions for non-authenticated users.

Default roles: Add suggestion, Access repository

Lectores

This role ensures visibility of public projects for all users. By default, all users are members of this group.

By default, automatic group assignment makes all new accounts members of this group when they join.

Default roles: none

Users

Grupo predeterminado para todos los usuarios.

By default, automatic group assignment makes all new accounts members of this group when they join.

Default roles: Power user

Revisores

Group for reviewers (see Flujos de trabajo de traducción).

Default roles: Review strings

Supervisores

Grupo para administradores.

Default roles: Administration

Advertencia

Never remove the predefined Weblate groups and users as this can lead to unexpected problems! If you have no use for them, you can removing all their privileges instead.

Restricciones de acceso adicionales

If you want to use your Weblate installation in a less public manner, i.e. allow new users on an invitational basis only, it can be done by configuring Weblate in such a way that only known users have an access to it. In order to do so, you can set REGISTRATION_OPEN to False to prevent registrations of any new users, and set REQUIRE_LOGIN to /.* to require logging-in to access all the site pages. This is basically the way to lock your Weblate installation.

Consejo

You can use built-in invitations to add new users.