readme corrections

This commit is contained in:
Matthew Barbour 2019-06-14 12:45:15 -05:00 committed by matthew
parent ed4b6bc4a0
commit 070429402b

View file

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