Giter VIP home page Giter VIP logo

Comments (6)

hsluoyz avatar hsluoyz commented on June 16, 2024

@Tinywan please give reproducible examples.

from think-authz.

Tinywan avatar Tinywan commented on June 16, 2024

@hsluoyz sql data

INSERT INTO `train_rules_domain` VALUES (19, 'p', 'admin', 'www.tinywan.com', 'data1', 'read', NULL, NULL);
INSERT INTO `train_rules_domain` VALUES (20, 'p', 'admin', 'www.tinywan.com', 'data1', 'write', NULL, NULL);
INSERT INTO `train_rules_domain` VALUES (38, 'p', 'admin', 'domain2', 'data2', 'read', NULL, NULL);
INSERT INTO `train_rules_domain` VALUES (39, 'p', 'admin', 'domain2', 'data2', 'write', NULL, NULL);
INSERT INTO `train_rules_domain` VALUES (40, 'g', 'alice', 'admin', 'www.tinywan.com', NULL, NULL, NULL);
INSERT INTO `train_rules_domain` VALUES (41, 'g', 'bob', 'admin', 'domain2', NULL, NULL, NULL);

from think-authz.

Tinywan avatar Tinywan commented on June 16, 2024

this config file must is tauthz-rbac-model.conf ,other this is error,eg:tauthz-rbac-domain-model.conf is fail

from think-authz.

leeqvip avatar leeqvip commented on June 16, 2024

@Tinywan 可以在 config/tauthz.php配置文件中指定 model文件路径:

    'enforcers' => [
        'basic' => [
            /*
            * Model 设置
            */
            'model' => [
                // 可选值: "file", "text"
                'config_type' => 'file',
                'config_file_path' => config_path().'tauthz-rbac-model.conf', // model文件路径
                'config_text' => '',
            ],

from think-authz.

Tinywan avatar Tinywan commented on June 16, 2024

@techoner 已经解决了哈!

from think-authz.

hsluoyz avatar hsluoyz commented on June 16, 2024

@Tinywan please close this issue if resolved.

from think-authz.

Related Issues (20)

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.