HEX
Server: LiteSpeed
System: Linux s787.bom1.mysecurecloudhost.com 4.18.0-477.13.1.lve.el8.x86_64 #1 SMP Thu Jun 1 16:40:47 EDT 2023 x86_64
User: mobilech (5348)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //opt/saltstack/salt/lib/python3.10/site-packages/salt/acl/__pycache__/__init__.cpython-310.pyc
o

;j��@sdZddlZGdd�d�ZdS)z�
The acl module handles publisher_acl operations

Additional information on publisher_acl can be
found by reading the salt documentation:

    https://docs.saltproject.io/en/latest/ref/publisheracl.html
�Nc@s8eZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�ZdS)
�PublisherACLze
    Represents the publisher ACL and provides methods
    to query the ACL for given operations
    cCs
||_dS)N��	blacklist)�selfr�r�E/opt/saltstack/salt/lib/python3.10/site-packages/salt/acl/__init__.py�__init__s
zPublisherACL.__init__cCstjjj||j�dg�d�S)z�
        Takes a username as a string and returns a boolean. True indicates that
        the provided user has been blacklisted
        �usersr��salt�utils�stringutils�check_whitelist_blacklistr�get�r�userrrr�user_is_blacklisteds�z PublisherACL.user_is_blacklistedcCs@t|t�r|g}|D]}tjjj||j�dg�d�sdSq
dS)N�modulesrTF��
isinstance�strrrr
rrr�r�cmdZfunrrr�cmd_is_blacklisted!�
��zPublisherACL.cmd_is_blacklistedcCstjjj||j�dg�d�S)Nr	�Z	whitelistr
rrrr�user_is_whitelisted,s�z PublisherACL.user_is_whitelistedcCs@t|t�r|g}|D]}tjjj||j�dg�d�rdSq
dS)NrrTFrrrrr�cmd_is_whitelisted1rzPublisherACL.cmd_is_whitelistedN)	�__name__�
__module__�__qualname__�__doc__rrrrrrrrrrs	r)r!Zsalt.utils.stringutilsrrrrrr�<module>s