Skip to content

Commit

Permalink
FIX Updated docs
Browse files Browse the repository at this point in the history
The docs as they were would break websites and no warning was given regarding the security around doing this.
  • Loading branch information
micmania1 committed Feb 27, 2015
1 parent 773624a commit 4c5a07e
Showing 1 changed file with 5 additions and 4 deletions.
Expand Up @@ -368,8 +368,9 @@ class ImageExtension extends DataExtension {
);

function canEdit($member) {
// This part is important!
return Permission::check('ADMIN');
// WARNING! This affects permissions on ALL images. Setting this incorrectly can restrict
// access to authorised users or unintentionally give access to unauthorised users if set incorrectly.
return Permission::check('CMS_ACCESS_AssetAdmin');
}
}
```
Expand All @@ -378,6 +379,6 @@ class ImageExtension extends DataExtension {

```yml
Image:
extensiona
-ImageExtension
extensions:
- ImageExtension
```

0 comments on commit 4c5a07e

Please sign in to comment.