Added missing Permission class to example

Following the example will give the following error;

```[Emergency] Uncaught Error: Class {my namespace}\Permission not found```

Added the missing class
This commit is contained in:
Erlend Mongstad 2019-04-17 02:36:13 +02:00 committed by GitHub
parent 45edc816ba
commit 80b097eb68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,6 +23,7 @@ The simple usage, Permission::check("PERM_CODE") will detect if the currently lo
This method should return a map of permission code names with a human readable explanation of its purpose.
```php
use SilverStripe\Security\Permission;
use SilverStripe\Security\PermissionProvider;
use SilverStripe\Security\Security;