mirror of
https://github.com/delight-im/PHP-Auth.git
synced 2025-08-05 15:47:25 +02:00
Fix wrong example of variable name for library's instance in README
This commit is contained in:
@@ -716,19 +716,19 @@ function canEditArticle(\Delight\Auth\Auth $auth) {
|
||||
|
||||
// ...
|
||||
|
||||
if (canEditArticle($app->auth())) {
|
||||
if (canEditArticle($auth)) {
|
||||
// the user can edit articles here
|
||||
}
|
||||
|
||||
// ...
|
||||
|
||||
if (canEditArticle($app->auth())) {
|
||||
if (canEditArticle($auth)) {
|
||||
// ... and here
|
||||
}
|
||||
|
||||
// ...
|
||||
|
||||
if (canEditArticle($app->auth())) {
|
||||
if (canEditArticle($auth)) {
|
||||
// ... and here
|
||||
}
|
||||
```
|
||||
|
Reference in New Issue
Block a user