HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.109.1.lve.el8.x86_64 #1 SMP Thu Mar 5 20:23:46 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //opt/saltstack/salt/lib/python3.10/site-packages/salt/acl/__pycache__/__init__.cpython-310.pyc
o

�N�g��@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