Skip to content

Experience scripts: fix blocked permission check regression #150

@martysl

Description

@martysl

Problem

Experience scripts were breaking in the permission request flow.

In llRequestExperiencePermissions, the permission branch checked ExperiencePermission.Allowed twice. Because of that, the Blocked case was never handled explicitly and blocked users could fall through into the permission prompt path.

What I changed

  • Updated Source/OpenSim.Region.ScriptEngine.Shared/Api/LSL_Api.cs.
  • Replaced the second duplicate check:
    • from: else if (experiencePermission == ExperiencePermission.Allowed)
    • to: else if (experiencePermission == ExperiencePermission.Blocked)
  • This now correctly sends experience_permissions_denied with XP_ERROR_NOT_PERMITTED for blocked users.

Pull Request

PR with fix: #149

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions