-
Hello,
I'm on a situation that sometimes I have more parameters for the policies, can this be made like in documentation? I can't figure out the way to make it work. It always tells me I provided les…
-
Like: https://github.com/php-casbin/php-casbin
![image](https://user-images.githubusercontent.com/3787410/189123995-1b57ce22-39a3-4f62-bc38-0ee0f58bdd44.png)
-
I see in code that the initTable method is invoked in the constructor.
This means the db table is created (with the default name) before the casbinRuleTableName parameter can be set.
This also m…
-
Add to: https://casbin.io/docs/middlewares#:~:text=PHP-,Python,-.NET
-
Argument 2 passed to Casbin\Enforcer::addPermissionForUser() must be of the type string, null given, called in /Volumes/lemoba/workspace/company/laravel-casbin-admin/vendor/casbin/laravel-authz/src/E…
-
i want change default v7 struct to v5 ,use NewAdapterByDBWithCustomTable is not work
````
type CasbinRule struct {
ID uint `gorm:"primaryKey;autoIncrement"`
Ptype string `gorm:"size:100;un…
-
Language : PHP
The framework:"laravel/lumen-framework": "^8.0",
Package: "casbin/laravel-authz": "^3.1"
### Problem description:
```php
/ alice has the admin role
Enforcer::addRoleForUser('ali…
-
laravel-authz, version 3.1.1
php-casbin, version 3.20.3
conf
```
[request_definition]
r = admin_id, site_id, permission_name
[policy_definition]
p = group_id, site_id, permission_name
[r…
-
研究了一下,好像只能一对一匹配路由权限,无法通过restful形式,请问有解决办法吗?
-
My `composer.json`:
```json
"require": {
"php": ">= 7.2",
"fideloper/proxy": "^4.0",
"freyo/flysystem-qcloud-cos-v5": "^1.4",
"guzzlehttp/guzzle": "6.3",
"kuainiu/lar…