Quantum Manager | NorrNext Documentation
DocumentationQuantum Manager
  • 🚀Getting started
  • 🛠️Configuration
    • General
    • Images
    • Profiles
    • Permissions
  • Editor Button
  • Replacement of standard Media Manager
  • FAQ
  • 📚Best Practices
    • Scopes
    • Override parameters via Profiles
    • How to automatically create a folder for a user and limit access
    • How to automatically create folders with the current date
    • Long file names and transliteration
    • Image processing during the upload
    • Use of high-quality photos with a free license
Powered by GitBook
On this page
  • Add scope with variable
  • Permissions
  1. 📚Best Practices

How to automatically create a folder for a user and limit access

PreviousOverride parameters via ProfilesNextHow to automatically create folders with the current date

Last updated 2 years ago

In some cases, you might want to automatize creating a new folder for the user of a specified user group and limit access within that folder only. It is actual if you are working on a portal or catalogue and need to set up permissions and give the users limited access to avoid managing images uploaded by other users.

Such a scenario means every user will have access to the own folder only which is important for the website where various authors publishing the content.

Add scope with variable

To create such a scenario, let's use the default scope Images. Change the path to:

/images/user/{user_ID}

According to such logic, when a user accesses Quantum Manager, a new folder will be created if it yet not exists, and all such folders to be stored in /user folder. E.g. the user has ID 636, and the folder with the same name is created.

Update default scope with user variable

Now the user is limited in own folder:

By default, the Image scope creates a new folder according to user's ID.

Permissions

Now it's time to set up permissions to the specified user group to access. Let it be Manager User Group. By default, managers do not have access to the component, so let change the state in permissions.

Go to Components > Quantum Manager > Options > Permissions Then click on Manager tab and set Access Administration Interface to Allowed.

More information on how to work with Joomla permissions in the official Access Control List Tutorial.

Now the user of Manager User Group can access Quantum Manager and work inside their own image folder only.

The result
Allow access to the Quantum Administration Interface for Managers
Update default scope with user variable in Quantum Manager
The result
Allow access to the Quantum Administration Interface for Managers