Giter Site home page Giter Site logo

php-casbin / codeigniter-permission Goto Github PK

View Code? Open in Web Editor NEW
45.0 45.0 9.0 25 KB

Associate users with roles and permissions, use Casbin in CodeIgniter4 Web Framework.

Home Page: https://github.com/php-casbin/php-casbin

License: Apache License 2.0

PHP 100.00%
access-control acl authorization codeigniter permissions rbac restful

codeigniter-permission's Issues

outdated casbin

Looks like codeigniter-permission is still uses outdated casbin ^2.0 this leads to error on php 8.1
is it possible to update composer to follow latest version of casbin 3.x?

AddNamedPolicies() not add authorization rules to the current named policy

I have rules in array, E.g.:
$rules = [ ["editor", "/admin/dashboard/*", "GET"], ["editor", "/admin/users/edit*", "GET"] ];

Even though the function from ManagementApi $e->addPolicies($rules) returns True, does not add any rules.

For completion only:
If I use E.g. $e->addPolicy("editor", "/admin/dashboard/*", "GET"), the function returns True and the rule is added properly.

Error in Composer

Hi, I'm getting these error when trying to install via composer:

Problem 1
     - Installation request for casbin/codeigniter-permission dev-master -> satisfiable by casbin/codeigniter-permission[dev-master].
     - casbin/codeigniter-permission dev-master requires codeigniter4/framework ^4@rc -> satisfiable by codeigniter4/framework[v4.0.0-alpha.3, v4.0.0-alpha.4, v4.0.0-alpha.5, v4.0.0-beta.1, v4.0.0-beta.2, v4.0.0-beta.3, v4.0.0-beta.4, v4.0.0-rc.1, v4.0.0-rc.2, v4.0.0-rc.2.1, v4.0.0-rc.3] but these conflict with your requirements or minimum-stability.

The CodeIgniter version that I'm using is 4.0.0.-rc3

Can you please help me?

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.