readme corrections

This commit is contained in:
Matthew Barbour 2019-06-14 12:45:15 -05:00 committed by matthew
parent ed4b6bc4a0
commit 070429402b
1 changed files with 4 additions and 4 deletions

View File

@ -99,21 +99,21 @@ For example, one can override the default anonymous "allow nothing"
permissions like so:
```php
new UserClass("anonymous", "base", array(
new UserClass("anonymous", "base", [
"create_comment" => True,
"edit_image_tag" => True,
"edit_image_source" => True,
"create_image_report" => True,
));
]);
```
For a moderator class, being a regular user who can delete images and comments:
```php
new UserClass("moderator", "user", array(
new UserClass("moderator", "user", [
"delete_image" => True,
"delete_comment" => True,
));
]);
```
For a list of permissions, see `core/userclass.php`