mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Update 07_Permissions.md
Added `$context` to `canCreate()` to reflect actual method signature.
This commit is contained in:
parent
b22f33ae84
commit
a97e22c8f1
@ -37,7 +37,7 @@ class MyDataObject extends DataObject
|
||||
return Permission::check('CMS_ACCESS_CMSMain', 'any', $member);
|
||||
}
|
||||
|
||||
public function canCreate($member = null)
|
||||
public function canCreate($member = null, $context = [])
|
||||
{
|
||||
return Permission::check('CMS_ACCESS_CMSMain', 'any', $member);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user