gui/backend/gui_plugin/users/UserManagement.py
def list_role_privileges(role, web_session=None):
    """Lists all privileges of a role.

    Args:
        role (str): The name of the role.
        web_session (object): The webserver session object, optional. Will be
            passed in by the webserver automatically

    Returns:
        The generated shell request record.
    """
    with BackendDatabase(web_session) as db:
        return db.select('''SELECT pt.name as type, p.name, p.access_pattern
            FROM privilege p
                INNER JOIN role_has_privilege r_p
                    ON p.id = r_p.privilege_id
                INNER JOIN privilege_type pt
                    ON p.privilege_type_id=pt.id
                INNER JOIN role r
                    ON r_p.role_id = r.id
            WHERE r.name = ?''', (role,))
Lists all privileges of a role.

    Args:
        role (str): The name of the role.
        web_session (object): The webserver session object, optional. Will be
            passed in by the webserver automatically

    Returns:
        The generated shell request record.
    
Lists all privileges of a role.
Lists all privileges of a role .
def list_role_privileges(role, web_session=None):
    with BackendDatabase(web_session) as db:
        return db.select('''SELECT pt.name as type, p.name, p.access_pattern
            FROM privilege p
                INNER JOIN role_has_privilege r_p
                    ON p.id = r_p.privilege_id
                INNER JOIN privilege_type pt
                    ON p.privilege_type_id=pt.id
                INNER JOIN role r
                    ON r_p.role_id = r.id
            WHERE r.name = ?''', (role,))
def list_role_privileges ( role , web_session = None ) : with BackendDatabase ( web_session ) as db : return db . select ( '''SELECT pt.name as type, p.name, p.access_pattern
            FROM privilege p
                INNER JOIN role_has_privilege r_p
                    ON p.id = r_p.privilege_id
                INNER JOIN privilege_type pt
                    ON p.privilege_type_id=pt.id
                INNER JOIN role r
                    ON r_p.role_id = r.id
            WHERE r.name = ?''' , ( role , ) )
Lists all privileges of a role.
Lists all privileges of a role .
"""Lists all privileges of a role.

    Args:
        role (str): The name of the role.
        web_session (object): The webserver session object, optional. Will be
            passed in by the webserver automatically

    Returns:
        The generated shell request record.
    """
The generated shell request record.
The generated shell request record .
role
The name of the role.
The name of the role .
web_session
The webserver session object, optional. Will be
passed in by the webserver automatically
The webserver session object optional . Will be passed in by the webserver automatically