huskar_api/models/auth/application.py
def check_auth(self, authority, user_id):
        """Checks the authority of user for this application.

        :param authority: ``AUTHORITY_READ``, ``AUTHORITY_WRITE`` or
                          ``AUTHORITY_ADMIN``.
        :param user_id: The id of examined user.
        """
        assert authority in Authority
        return self._check_authority_with_internal_auth(authority, user_id)
Checks the authority of user for this application.

        :param authority: ``AUTHORITY_READ``, ``AUTHORITY_WRITE`` or
                          ``AUTHORITY_ADMIN``.
        :param user_id: The id of examined user.
        
Checks the authority of user for this application.
Checks the authority of user for this application .
def check_auth(self, authority, user_id):
        assert authority in Authority
        return self._check_authority_with_internal_auth(authority, user_id)
def check_auth ( self , authority , user_id ) : assert authority in Authority return self . _check_authority_with_internal_auth ( authority , user_id )
Checks the authority of user for this application.
Checks the authority of user for this application .
"""Checks the authority of user for this application.

        :param authority: ``AUTHORITY_READ``, ``AUTHORITY_WRITE`` or
                          ``AUTHORITY_ADMIN``.
        :param user_id: The id of examined user.
        """
self
authority
``AUTHORITY_READ``, ``AUTHORITY_WRITE`` or
``AUTHORITY_ADMIN``.
` ` AUTHORITY_READ ` ` ` ` AUTHORITY_WRITE ` ` or ` ` AUTHORITY_ADMIN ` ` .
user_id
The id of examined user.
The id of examined user .