🔍 Code Extractor

Search Components

Full-Text: Fast keyword matching | Semantic: AI-powered understanding of intent (finds similar concepts)

Search Results for "permissions"

Found 50 matching component(s)

  • function create_document

    Creates a new controlled document in a document management system with versioning, audit trails, and optional initial content.

    File: /tf/active/vicechatdev/document_controller_backup.py

    document-management controlled-documents document-creation versioning audit-trail
  • function delete_document

    Deletes a controlled document from the system with permission checks, status validation, and audit logging.

    File: /tf/active/vicechatdev/document_controller_backup.py

    document-management deletion controlled-documents audit-trail permissions
  • function create_document_v1

    Creates a new version of an existing document in a document management system, storing the file in FileCloud and tracking version metadata in Neo4j graph database.

    File: /tf/active/vicechatdev/document_controller_backup.py

    document-management version-control filecloud neo4j graph-database
  • function set_current_version

    Sets a specific version of a controlled document as the current/active version, updating the document's currentVersionUID property and logging the change.

    File: /tf/active/vicechatdev/document_controller_backup.py

    document-management version-control controlled-documents audit-trail permissions
  • function clone_document_v1

    Clones an existing controlled document to create either a new independent document or a new revision of the same document, optionally including the document's content.

    File: /tf/active/vicechatdev/document_controller_backup.py

    document-management cloning versioning controlled-documents revision-control
  • function get_documents_v1

    Retrieves filtered and paginated documents from a Neo4j graph database with permission-based access control, supporting multiple filter criteria and search functionality.

    File: /tf/active/vicechatdev/document_controller_backup.py

    document-management neo4j graph-database filtering pagination
  • class FileCloudAPI

    Python wrapper for the FileCloud REST API. This class provides methods to interact with FileCloud server APIs, handling authentication, session management, and various file operations.

    File: /tf/active/vicechatdev/FC_api copy.py

    class filecloudapi
  • class DocumentDetail

    Document detail view component

    File: /tf/active/vicechatdev/document_detail_backup.py

    class documentdetail
  • class FileCloudAPI_v1

    Python wrapper for the FileCloud REST API. This class provides methods to interact with FileCloud server APIs, handling authentication, session management, and various file operations.

    File: /tf/active/vicechatdev/FC_api.py

    class filecloudapi
  • class DocumentDetail_v1

    Document detail view component

    File: /tf/active/vicechatdev/document_detail_old.py

    class documentdetail
  • function test_acl_functions

    Comprehensive test function that validates ACL (Access Control List) management operations in FileCloudAPI, including creating, reading, updating, and deleting ACL entries for users and groups.

    File: /tf/active/vicechatdev/test_acl_functions.py

    testing acl access-control permissions filecloud
  • class ControlledDocApp

    A standalone Panel web application class that provides a complete controlled document management system with user authentication, navigation, and document lifecycle management features.

    File: /tf/active/vicechatdev/panel_app.py

    panel web-application document-management authentication navigation
  • function main_v34

    Interactive CLI helper function that generates and displays instructions for granting SharePoint app permissions to an Azure AD application.

    File: /tf/active/vicechatdev/SPFCsync/grant_sharepoint_access.py

    sharepoint azure-ad permissions cli-helper configuration
  • function test_sharepoint_token

    Tests SharePoint OAuth2 authentication by acquiring an access token using client credentials flow and validates it with a SharePoint API call.

    File: /tf/active/vicechatdev/SPFCsync/diagnose_sharepoint.py

    sharepoint oauth2 authentication azure-ad access-token
  • function test_sharepoint_api_call

    Tests SharePoint REST API connectivity by making an authenticated GET request to retrieve basic site information and validates the access token and permissions.

    File: /tf/active/vicechatdev/SPFCsync/diagnose_sharepoint.py

    sharepoint api-testing authentication oauth rest-api
  • function main_v43

    Orchestrates a comprehensive SharePoint connection diagnostic tool that validates Azure AD authentication and SharePoint access by running multiple tests and reporting results.

    File: /tf/active/vicechatdev/SPFCsync/diagnose_sharepoint.py

    diagnostics sharepoint azure-ad authentication testing
  • function test_graph_api_access

    Tests Microsoft Graph API access by obtaining an OAuth2 token and verifying connectivity to check tenant settings for SharePoint integration.

    File: /tf/active/vicechatdev/SPFCsync/check_tenant_config.py

    microsoft-graph authentication oauth2 sharepoint azure-ad
  • function test_graph_sites_api

    Tests Microsoft Graph API access to SharePoint sites by attempting to list available sites and locate a specific target site (vicebio.com), then tests drive access if found.

    File: /tf/active/vicechatdev/SPFCsync/check_tenant_config.py

    microsoft-graph sharepoint api-testing authentication oauth2
  • function test_site_drive_access

    Tests access to a SharePoint site's document library (drives) via Microsoft Graph API and attempts to access the first drive's root items.

    File: /tf/active/vicechatdev/SPFCsync/check_tenant_config.py

    microsoft-graph sharepoint api-testing authentication document-library
  • function test_drive_items

    Tests access to items in a Microsoft SharePoint drive by querying the Microsoft Graph API and verifying the response.

    File: /tf/active/vicechatdev/SPFCsync/check_tenant_config.py

    microsoft-graph-api sharepoint authentication api-testing drive-access
  • function provide_admin_instructions

    Displays comprehensive administrative instructions for fixing SharePoint app-only authentication issues by loading configuration and presenting multiple resolution options.

    File: /tf/active/vicechatdev/SPFCsync/check_tenant_config.py

    sharepoint admin-instructions troubleshooting authentication app-only-auth
  • function test_different_scopes

    Tests OAuth2 authentication with different permission scopes for SharePoint and Microsoft Graph APIs, attempting to acquire access tokens and validate them against a SharePoint site.

    File: /tf/active/vicechatdev/SPFCsync/diagnose_permissions.py

    authentication oauth2 sharepoint microsoft-graph azure-ad
  • function test_sharepoint_with_token

    Tests SharePoint REST API connectivity and authentication by making a GET request to retrieve site information using a provided access token.

    File: /tf/active/vicechatdev/SPFCsync/diagnose_permissions.py

    sharepoint api-testing authentication oauth rest-api
  • function main_v47

    Entry point function that runs a SharePoint permission diagnostic tool, testing different authentication scopes and providing troubleshooting guidance.

    File: /tf/active/vicechatdev/SPFCsync/diagnose_permissions.py

    sharepoint diagnostic authentication troubleshooting app-only-tokens
  • function is_admin_user

    Checks if the currently authenticated user has administrator privileges by comparing their email against a hardcoded list of admin emails.

    File: /tf/active/vicechatdev/docchat/app.py

    authentication authorization rbac admin access-control
  • class SharePointClient_v1

    Comprehensive SharePoint client using app-only authentication. Requires Azure AD app registration with appropriate SharePoint permissions.

    File: /tf/active/vicechatdev/Sharepoint/sharepoint_client.py

    class sharepointclient
  • class DocumentProtector

    A class that handles protecting PDF documents from editing by applying encryption and permission restrictions using pikepdf and PyMuPDF libraries.

    File: /tf/active/vicechatdev/document_auditor/src/security/document_protection.py

    pdf security encryption document-protection permissions
  • function api_get_document

    Flask API endpoint that retrieves a specific document by ID, validates user access permissions, and returns the document data as JSON.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py

    flask api rest document-retrieval authentication
  • function api_delete_document

    REST API endpoint that deletes a document from the application state after verifying the user's ownership and authentication.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py

    flask rest-api delete-endpoint document-management authentication
  • function api_create_section

    Flask API endpoint that creates a new section within a specified document, handling section positioning, type, level, title, and content with proper authentication and authorization checks.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py

    api flask rest-endpoint document-management section-creation
  • function api_get_chat_session

    Flask API endpoint that retrieves a specific chat session by ID, verifying user access permissions before returning the session data.

    File: /tf/active/vicechatdev/vice_ai/complex_app.py

    flask api rest-endpoint chat-session authentication
  • function add_existing_section_to_document

    Flask API endpoint that adds an existing text section to a document with advanced positioning options, copy creation, and access control validation.

    File: /tf/active/vicechatdev/vice_ai/new_app.py

    flask api-endpoint document-management text-section authentication
  • function add_existing_data_section_to_document

    Flask API endpoint that adds an existing data section to a document after verifying ownership and access permissions for both the document and data section.

    File: /tf/active/vicechatdev/vice_ai/new_app.py

    flask api-endpoint document-management data-section authentication
  • function smartstat_upload_data

    Flask route handler that uploads CSV or Excel data files to a SmartStat analysis session, with support for multi-sheet Excel files and session recovery.

    File: /tf/active/vicechatdev/vice_ai/new_app.py

    flask file-upload csv excel data-analysis
  • function smartstat_run_analysis

    Flask API endpoint that initiates a SmartStat statistical analysis in a background thread, tracking progress and persisting results to a data section.

    File: /tf/active/vicechatdev/vice_ai/new_app.py

    flask api-endpoint background-processing statistical-analysis async
  • function add_data_section_to_document

    Flask API endpoint that adds a data section to a document, either by creating a new data section or linking an existing one, with ownership verification.

    File: /tf/active/vicechatdev/vice_ai/new_app.py

    flask api-endpoint document-management data-section authentication
  • class FlaskUser

    A Flask-Login compatible user wrapper class that adapts CDocs DocUser objects for authentication and authorization in Flask applications.

    File: /tf/active/vicechatdev/CDocs/main_flask.py

    authentication authorization flask-login user-management rbac
  • class ControlledDocumentFlaskApp

    Main Flask application class for Controlled Document Management System.

    File: /tf/active/vicechatdev/CDocs/main_flask.py

    class controlleddocumentflaskapp
  • function initialize_system

    Initializes the CDocs document management system by setting up database connections, FileCloud integration, document sharing validation, and API routes.

    File: /tf/active/vicechatdev/CDocs/initialize_system.py

    initialization system-startup database filecloud api-routes
  • class ControlledDocumentApp

    Main application class for the Controlled Document Management System. This class initializes all components and provides the main Panel interface for the application. It is designed to be served via `panel serve` command and integrates with the existing datacapture application.

    File: /tf/active/vicechatdev/CDocs/main.py

    class controlleddocumentapp
  • class DocUser

    Extended User model for document management system. This class wraps and extends the existing User model in the system, adding document-specific roles, departments, and permissions.

    File: /tf/active/vicechatdev/CDocs/models/user_extensions.py

    class docuser
  • function is_editable_status

    Validates whether a given document status string allows editing by checking it against a predefined list of editable statuses.

    File: /tf/active/vicechatdev/CDocs/models/document_status.py

    validation status-check document-management permissions configuration
  • function is_published_status

    Validates whether a document status string represents a published or non-editable state by checking against a predefined list of non-editable statuses.

    File: /tf/active/vicechatdev/CDocs/models/document_status.py

    validation document-management status-check workflow permissions
  • class Permission

    A constants class that defines permission type strings for a document management and review system.

    File: /tf/active/vicechatdev/CDocs/config/permission_types.py

    permissions constants access-control authorization rbac
  • function user_has_permission

    Validates whether a user has one or more specified permissions based on their assigned roles and a role-permission mapping configuration.

    File: /tf/active/vicechatdev/CDocs/config/permissions.py

    authorization permissions RBAC role-based-access-control security
  • function get_user_permissions

    Retrieves all permissions for a user by aggregating permissions from their assigned roles, with fallback to default USER role permissions.

    File: /tf/active/vicechatdev/CDocs/config/permissions.py

    authorization permissions rbac role-based-access-control security
  • function check_document_permission

    Validates whether a user has specific permission(s) to access or modify a document based on their roles, ownership status, and configured role permissions.

    File: /tf/active/vicechatdev/CDocs/config/permissions.py

    authorization permissions RBAC access-control document-management
  • function user_has_permission_for_resource

    Checks if a user has a specific permission for a resource, considering both general permissions and resource-specific ownership/creator rights.

    File: /tf/active/vicechatdev/CDocs/config/permissions.py

    authorization permissions access-control security resource-ownership
  • class PermissionError

    Custom exception class that signals when a user attempts an action they lack permission to perform.

    File: /tf/active/vicechatdev/CDocs/controllers/admin_controller.py

    exception error-handling authorization permissions access-control
  • function create_approval_cycle_v1

    Creates a new approval cycle for a controlled document, managing approver assignments, permissions, notifications, and audit logging.

    File: /tf/active/vicechatdev/CDocs/controllers/approval_controller.py

    approval-workflow document-management access-control permissions audit-trail

Search Examples