mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Revisions per robbieaverill
This commit is contained in:
parent
eecb9f64d3
commit
4857816c9e
@ -42,6 +42,8 @@ class InheritedPermissionFlusher extends DataExtension implements Flushable
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param CacheFlusher[]
|
* @param CacheFlusher[]
|
||||||
|
* @throws InvalidArgumentException
|
||||||
|
* @return $this
|
||||||
*/
|
*/
|
||||||
public function setServices($services)
|
public function setServices($services)
|
||||||
{
|
{
|
||||||
@ -57,6 +59,8 @@ class InheritedPermissionFlusher extends DataExtension implements Flushable
|
|||||||
}
|
}
|
||||||
|
|
||||||
$this->services = $services;
|
$this->services = $services;
|
||||||
|
|
||||||
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -85,11 +89,7 @@ class InheritedPermissionFlusher extends DataExtension implements Flushable
|
|||||||
*/
|
*/
|
||||||
protected function getMemberIDList()
|
protected function getMemberIDList()
|
||||||
{
|
{
|
||||||
if (!$this->owner) {
|
if (!$this->owner || !$this->owner->exists()) {
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!$this->owner->exists()) {
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ class InheritedPermissionsFlusherTest extends SapphireTest
|
|||||||
{
|
{
|
||||||
protected static $fixture_file = 'InheritedPermissionsFlusherTest.yml';
|
protected static $fixture_file = 'InheritedPermissionsFlusherTest.yml';
|
||||||
|
|
||||||
public function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user