Skip to content

Is there a way to restrict assets folder per group? #1492

@silvester-pari

Description

@silvester-pari

Hello all, Cockpit is great so far!
The only thing I am struggling with is setting a root for the assets manager - since we are managing multiple groups in the CMS it is crucial that each group sees only the own assets. Is this even possible?

What I have tried:

setting the finder.path

groups:
  testgroup:
    cockpit:
      accounts: false
      backend: true
      finder: true
    $vars:
      finder.path: /storage/uploads/testgroup/

This works to restrict the finder starting location, but not the assetsmanager folder

setting media.path

groups:
  testgroup:
    cockpit:
      accounts: false
      backend: true
      finder: true
    $vars:
      media.path: /storage/uploads/testgroup/
      <or>
      media.path: /testgroup/

I found this digging in some older issues (e.g. #72) but this seems to be changed in the newer versions

disabling assetsmanager completely

groups:
  testgroup:
    cockpit:
      accounts: false
      backend: true
      finder: true
      assetsmanager: false
      <or>
      assets: false
      <or>
      media: false

This does nothing.

Is there any way to achieve this? Either disabling assets completely, or setting a starting folder.
Any help is much appreciated! Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions