Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
silvester-pari opened this issue May 2, 2022 · 0 comments
Open

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

silvester-pari opened this issue May 2, 2022 · 0 comments

Comments

@silvester-pari
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant