From 80b097eb684b0b3320c830865faac96fe12acd82 Mon Sep 17 00:00:00 2001 From: Erlend Mongstad Date: Wed, 17 Apr 2019 02:36:13 +0200 Subject: [PATCH] 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 --- docs/en/02_Developer_Guides/09_Security/02_Permissions.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/en/02_Developer_Guides/09_Security/02_Permissions.md b/docs/en/02_Developer_Guides/09_Security/02_Permissions.md index 4284f8e5f..86d8110eb 100644 --- a/docs/en/02_Developer_Guides/09_Security/02_Permissions.md +++ b/docs/en/02_Developer_Guides/09_Security/02_Permissions.md @@ -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;