Member Junction
    Preparing search index...

    Helper for AI Skill permissions — the runtime, cached, open-by-default access path.

    This is the skill sibling of AIAgentPermissionHelper and behaves identically: it reads the AIEngineBase in-memory caches (Skills + SkillPermissions) so checks are synchronous cache hits, and applies the same defaults —

    • no permission rows for a skill → anyone can View and Run (open by default), only the owner (AISkill.CreatedByUserID) can Edit/Delete;
    • rows exist → only matching User/Role grants apply, OR-aggregated, with the hierarchy Delete → Edit → Run → View.

    Contrast with AISkillPermissionProvider (the unified-engine wrapper in core-entities), which is closed-by-default and reports only explicit grants — that path powers the Sharing Center and audit; this path is the hot runtime gate (the /skill picker and the server-side RequestedSkills intersection). See guides/UNIFIED_PERMISSIONS_GUIDE.md.

    Index

    Constructors

    Methods

    • Checks whether a user has a specific permission on a skill.

      Parameters

      • skillId: string

        The skill to check.

      • user: UserInfo

        The user to check for.

      • permission: "view" | "run" | "edit" | "delete"

        'view' | 'run' | 'edit' | 'delete'.

      Returns Promise<boolean>