-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API接口 ---Enforcer::addPermissionForUser('writer', 'articles','edit'); 文档参数有与代码中facde参数不符 #19
Comments
好几个参数都对不上 |
// adds permissions to a user |
@techoner |
🎉 This issue has been resolved in version 1.2.2 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
差了一个action 参数
包中的代码:
文档中API 调用:
赋予权限给某个用户或角色:
// to user
Enforcer::addPermissionForUser('eve', 'articles', 'read');
// to role
Enforcer::addPermissionForUser('writer', 'articles','edit');
The text was updated successfully, but these errors were encountered: