定制 andersundsehr/group_access 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

andersundsehr/group_access

最新稳定版本:1.0.6

Composer 安装命令:

composer require andersundsehr/group_access

包简介

Allows to limit extbase actions ba frontend user group

README 文档

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/

统计信息

  • 总下载量: 1.68k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2023-01-31

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固