Problem/Motivation

- I want anonymous users to be able to access a Workspace using a Preview link
- This is possible if I allow anonymous the permission Access workspace previews
- But this also allows the anon user to generate / regenerate the Preview links

Proposed resolution

- Add a new permission "Manage workspace previews" and tie that into the "entity.workspace.preview_link_form" route

Issue fork wse-3507067

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

j-vee created an issue. See original summary.

j-vee’s picture

Status: Active » Needs review

amateescu made their first commit to this issue’s fork.

amateescu’s picture

Issue summary: View changes

Adding a separate permission for managing preview links makes sense, but we should also allow the regular "manage any workspace" permissions. Updated the MR to account for them.

  • amateescu committed 632cd265 on 2.0.x authored by j-vee
    Issue #3507067 by j-vee: Preview - Add separate permission to generate...

  • amateescu committed eaf8e6c1 on 1.0.x authored by j-vee
    Issue #3507067 by j-vee: Preview - Add separate permission to generate...
amateescu’s picture

Title: Preview - Add separate permission to generate Preview Links » Add separate permission for managing Preview Links
Assigned: j-vee » Unassigned
Status: Needs review » Fixed

Merged into 2.0.x and cherry-picked to 1.0.x, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

amateescu’s picture

Project: Workspaces Extra » Workspace Preview
Version: 2.0.x-dev » 1.0.x-dev
Component: Workspace Preview » Code

WSE Preview has been promoted to a standalone module: https://www.drupal.org/project/workspace_preview