mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX Updated docs
The docs as they were would break websites and no warning was given regarding the security around doing this.
This commit is contained in:
parent
773624a40b
commit
4c5a07ecec
@ -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');
|
||||
}
|
||||
}
|
||||
```
|
||||
@ -378,6 +379,6 @@ class ImageExtension extends DataExtension {
|
||||
|
||||
```yml
|
||||
Image:
|
||||
extensiona
|
||||
-ImageExtension
|
||||
extensions:
|
||||
- ImageExtension
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user