andersundsehr/group_access

Allows to limit extbase actions ba frontend user group

Installs: 820

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:typo3-cms-extension

1.0.3 2023-02-06 09:39 UTC

This package is auto-updated.

Last update: 2024-11-24 22:57:46 UTC


README

install

composer req andersundsehr/group_access:^1

usage:

<?php

#[GroupAccess([2, 6])]
class CustomerController extends ActionController
{

    public function overviewAction(): ResponseInterface
    {
        //this action is only accessible if the Frontend User has group 2 or 6
    }
    
    #[GroupAccess([7])]
    public function listAction(): ResponseInterface
    {
        //this action is only accessible if the Frontend User has group (2 or 6) and 7
    }
}
<?php

class ProjectController extends ActionController
{

    public function overviewAction(): ResponseInterface
    {
        //this action is only accessible for all users and without user login
    }
    
    #[GroupAccess([7, 9, 12])]
    public function listAction(): ResponseInterface
    {
        //this action is only accessible if the Frontend User has group 7 or 9 or 12
    }

    #[GroupAccess([3])]
    #[GroupAccess([5])]
    public function listAction(): ResponseInterface
    {
        //this action is only accessible if the Frontend User has group 3 and 5
    }
}

with ♥️ from anders und sehr GmbH

If something did not work 😮
or you appreciate this Extension 🥰 let us know.

We are hiring https://www.andersundsehr.com/karriere/