• Brian Haug

    (@brianhaugacumednet)


    When a user is only assigned to the Editor role, they get the following when trying to edit a post containing a PDF Embed block.

    Please insert a free api key to start using this block. Only admin can manage PDF Embed api key.

    They can view posts without issue. If I assign the user to the Administrator role, they can edit posts with PDF Embed blocks without issue. The API Key is added and administrators have no problem adding or editing PDF Embed blocks.

    Server: IIS
    PHP Version: 8.3.29
    WordPress: 7.0.4
    PDF Embed: 0.6.2

Viewing 1 replies (of 1 total)
  • Thread Starter Brian Haug

    (@brianhaugacumednet)

    Looks like all roles but administrators are blocked from editing or creating PDF Embed blocks. I think the following line of code in index.js is the issue as I believe only administrator roles can access site options this way.

    [g] = (0, x.useEntityProp)("root", "site", "pdf_embed")

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.