Giter VIP home page Giter VIP logo

permission-sets's Introduction

Repeatable and deployable Permission Sets for TYPO3

*** Please note that this extension is still in testing phase ***

This extension allows to attach a set of permissions to TYPO3 Backend UserGroups based on files.

These sets of permissions are put in files and can be stored on a per-project basis or in extensions.

Currently, the only supported configuration file for permission sets is YAML.

This extension works with TYPO3 v11+.

Installation

You can install this extension by using composer:

composer req b13/permission-sets

Location of permission set resources

  • config/permission-sets/*.yaml
  • EXT:my-extension/Configuration/PermissionSets/*.yaml

Available options in a Permission Set

Module Access

Give access to a module, or to all modules of a main module.

modules:
  # enable access to a specific module
  web_info: true
  # enable access to all submodules of a module
  web: "*"

TCA-related settings

Enable access to TCA tables

resources:
  pages:
    fields: "*"
    types: "*"
  tt_content:
    fields: "*"
    types: ["textpic"]

Special options:

  • _languageFields
  • _types
  • _starttime

Languages

# Allow any language
languages: "*"

# Allow any locale (used from site configuration)
languages: ["de_DE", "en_UK"]

Dashboard Widgets

widgets: ['*']

widgets:
    - 'sysLogErrors'
    - 't3news'

MFA Providers

mfa_providers: ['*']

mfa_providers:
    - 'totp'
    - 'recovery-codes'

File Permissions

files:
  # file-related permissions
  - readFile
  - writeFile
  - addFile
  - renameFile
  - replaceFile
  - moveFile
  - copyFile
  - deleteFile
  # folder-related permissions
  - readFolder
  - writeFolder
  - addFolder
  - renameFolder
  - moveFolder
  - copyFolder
  - deleteFolder
  - recursiveDeleteFolder

Sites

sites:
  # Grant Permissions to the DB mounts of a specific site
  - main
  - landingpage1
  # Grant permission to a specific page within the installation
  - 13

UserTsConfig

UserTsConfig is merged automatically with the users' / user group configuration.

settings:
    options:
        createFoldersInEB: true
    TCEMAIN:
        clearCache: all

ToDo

  • Extensive tests
  • Add default permission sets as examples
  • Enhance documentation

License

The extension is licensed under GPL v2+, same as the TYPO3 Core. For details see the LICENSE file in this repository.

Open Issues

If you find an issue, feel free to create an issue on GitHub or a pull request.

Credits

This extension was created by Benni Mack in 2021 for b13 GmbH.

Find more TYPO3 extensions we have developed that help us deliver value in client projects. As part of the way we work, we focus on testing and best practices to ensure long-term performance, reliability, and results in all our code.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.