{% extends "base.html" %} {% block title %}{{ _('Object Permissions') }} — {{ service_name }}{% endblock %} {% block stylesheets %} {{ super() }} {% endblock %} {% block scripts %} {{ super() }} {% if config['LOAD_OBJECTS_IN_BACKGROUND'] %} {% endif %} {% endblock %} {% block content %}

{{ _('Object') }} #{{ object.object_id }}{% if object.data %}: {{ object.data.name.text | get_translated_text(default="—") }}{% endif %}

{{ _('Permissions') }}

{% set user_may_edit = (permissions_form is not none) %} {% set form_url = url_for('.update_object_permissions', object_id=object.object_id) %} {% set fixed_user_permissions = {} %} {% set show_administrators = True %} {% set show_instrument_scientists = instrument is not none %} {% set show_all_users = True %} {% set show_anonymous_users = config['ENABLE_ANONYMOUS_USERS'] %} {% set read_permissions_description = _('Permission to view objects and their properties, files and comments.') %} {% set write_permissions_description = _('Permission to edit objects and their properties and add files and comments. Includes Read permissions.') %} {% set grant_permissions_description = _('Permission to grant permissions to other users. Includes Write permissions.') %} {% include "permissions/permissions.html" %} {% if user_may_edit %} {% if object.component_id is none and (possible_new_components or federation_shares)%}

{{ _('Other databases') }}

{% if federation_shares %}
{{ edit_component_policy_form.csrf_token }}
{{ _('Special Groups') }} {{ _('Read') }} {{ _('Write') }} {{ _('Grant') }}
{{ _('Administrators') }}

{{ _('Add User') }}

{{ _('or') }}
{{ _('Note') }}: {{ _('Objects from other databases are currently read-only, but WRITE permissions may allow users to edit the object or add comments or files to it in the future.') }}

{{ _('Add Basic Group') }}

{{ _('Add Project Group') }}

{% endif %} {% if possible_new_components %}

{{ _('Add database') }}

{{ add_component_policy_form.csrf_token }}
{{ _('Special Groups') }} {{ _('Read') }} {{ _('Write') }} {{ _('Grant') }}
{{ _('Administrators') }}

{{ _('Add User') }}

{{ _('or') }}
{{ _('Note') }}: {{ _('Objects from other databases are currently read-only, but WRITE permissions may allow users to edit the object or add comments or files to it in the future.') }}

{{ _('Add Basic Group') }}

{{ _('Add Project Group') }}

{% endif %} {% endif %} {% if copy_permissions_form %}
{% endif %}
{{ _('Cancel') }}
{% endif %} {% if copy_permissions_form %} {% endif %} {% endblock %}