{% extends 'edit.twig' %} {% block inner_content %} {% if result %} {# XOAUTH2 sources are managed by admins and domain admins only #} {% set ro = not result.can_edit or (mailcow_cc_role == 'user' and result.auth_type == 'XOAUTH2') %} {% set show_oauth = mailcow_cc_role != 'user' or result.auth_type == 'XOAUTH2' %} {% set is_cc = result.auth_type == 'XOAUTH2' and result.oauth_flow != 'authorization_code' %}