fix: typo

This commit is contained in:
mouyong 2024-04-23 12:21:50 +08:00 committed by GitHub
parent 466590c083
commit ff3153e3f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ use Enforcer;
Enforcer::addPermissionForUser('eve', 'articles', 'read');
// adds a role for a user.
Enforcer::addRoleForUser('eve', 'writer');
// adds permissions to a rule
// adds permissions to a role
Enforcer::addPolicy('writer', 'articles','edit');
```