Experimental project
This is a sandbox project, which contains experimental code for developer use only.
Drupal core's Workspaces module lets you stage content before publishing, but it has no way to keep a workspace itself hidden from other users. Anyone who can see the workspace list can see that a workspace exists. And even often what's in it even if they have no business looking at it.
Private Workspace fixes that. Mark a workspace private, pick which roles (if any) are allowed in, and everyone else stops seeing it. This includes everywhere its existence would appear: listings, autocomplete fields, JSON:API responses, etc. No permission is exempt, including "Administer workspaces" and user 1.
Features
- Mark any workspace private and choose which roles can still see it. Leave the role list empty and it's owner-only.
- No exemptions. Even users with "Administer workspaces" can't see a private workspace they're not explicitly allowed into. If your site handles anything sensitive in a workspace i.e. an upcomming press release, HR content, a client's unannounced project — this is the point of the module.
- A site-wide toggle to switch enforcement off entirely — handy if you need to hand a workspace over to support and don't want to be juggling role/owner changes to do it.
- Plays nicely with Workspaces Extra (wse). If wse is installed, this module doesn't try to fight it for control of the workspace listing but rather it wraps whatever is there.
Post-Installation
Nothing to configure after install. To make a workspace private, edit it and check the "Private" box, then pick the roles you want to allow in (or leave that list empty for owner-only).
Note: this module only restricts. It doesn't grant access. A workspace's owner or an allowed role still needs a baseline permission like "View own workspace" to see it at all.
Additional Requirements
Nothing outside Drupal core's Workspaces, Workspaces UI, and Views modules.
Recommended modules/libraries
If you're already running Workspaces Extra (wse) for its open/closed workflow, this module is aware of it and won't have issues.
Similar projects
No other contrib projects does what this module does. wse_group_access (part of wse) covers group-based access to workspaces, which solves a related but different problem.
Project information
Minimally maintained
Maintainers monitor issues, but fast responses are not guaranteed.- Project categories: Content editing experience
- Ecosystem: Workspace Permissions
- Created by heddn on , updated
