{% set form_url = url_for('.action_permissions', action_id=action.id) %}
{% set fixed_user_permissions = {action.user_id: Permissions.GRANT} if action.user_id is not none else {} %}
{% set show_administrators = True %}
{% set show_instrument_scientists = instrument is not none %}
{% set show_all_users = True %}
{% set read_permissions_description = _('Permission to view actions and use them to create objects.') %}
{% set write_permissions_description = _('Permission to edit the schemas and descriptions of actions. 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 %}