'Check if the user is assigned a Custom Role or not
This checks if there is an entry containing the current user in the `user_system_roles` table
returns panel name if exists otherwise false'

def first_access_panel(self):

    custom_role = UserSystemRole.query.filter_by(user=self).first()
    if (not custom_role):
        return False
    perm = PanelPermission.query.filter_by(role_id=custom_role.role_id, can_access=True).first()
    if (not perm):
        return False
    return perm.panel_name
