Closed amitgoldy1 closed 2 years ago
@basakest @techoner
Are you using the default lauthz-rbac-model.conf configuration file? I tried to reproduce this error, but did not succeed.
[request_definition] r = sub, obj, act
[policy_definition] p = sub, obj, act
[roledefinition] g = , _
[policy_effect] e = some(where (p.eft == allow))
[matchers] m = g(r.sub, p.sub) && keyMatch2(r.obj, p.obj) && regexMatch(r.act, p.act)
I am using this middleware in web.php file.
Route::group(['middleware' => ['http_request']], function () { Route::resource('photo', 'PhotoController'); });
@basakest @amitgoldy1 There should be a need to convert the AuthIdentifier to a string : https://github.com/php-casbin/laravel-authz/blob/master/src/Middlewares/RequestMiddleware.php#L53
@basakest plz work on it
:tada: This issue has been resolved in version 3.0.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
I am getting this issue, when I used following steps to reproduce this issue.