Ë
    ÝªgY  ã                   ó0   — d dl mZ dedefd„Zdedefd„Zy)é    )ÚLitellmUserRolesÚui_access_modeÚreturnc                 ó   — | dk(  S )z#Checks ui access mode is admin_onlyÚ
admin_only© )r   s    úh/var/www/openai/venv/lib/python3.12/site-packages/litellm/proxy/management_endpoints/sso_helper_utils.pyÚcheck_is_admin_only_accessr
      s   € à˜\Ñ)Ð)ó    Ú	user_rolec                 óz   — | t         j                  j                  k7  r| t         j                  j                  k7  ryy)zž
    Check if the user has admin access to the UI.

    Returns:
        bool: True if user is 'proxy_admin' or 'proxy_admin_view_only', False otherwise.
    FT)r   ÚPROXY_ADMINÚvalueÚPROXY_ADMIN_VIEW_ONLY)r   s    r	   Úhas_admin_ui_accessr   	   s4   € ð 	Ô%×1Ñ1×7Ñ7Ò7ØÔ)×?Ñ?×EÑEÒEàØr   N)Úlitellm.proxy._typesr   ÚstrÚboolr
   r   r   r   r	   Ú<module>r      s.   ðÝ 1ð*¨sð *°tó *ð
 3ð ¨4ô r   