mirror of
https://github.com/delight-im/PHP-Auth.git
synced 2025-08-06 08:07:27 +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
|
// the user can edit articles here
|
||||||
}
|
}
|
||||||
|
|
||||||
// ...
|
// ...
|
||||||
|
|
||||||
if (canEditArticle($app->auth())) {
|
if (canEditArticle($auth)) {
|
||||||
// ... and here
|
// ... and here
|
||||||
}
|
}
|
||||||
|
|
||||||
// ...
|
// ...
|
||||||
|
|
||||||
if (canEditArticle($app->auth())) {
|
if (canEditArticle($auth)) {
|
||||||
// ... and here
|
// ... and here
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user