Skip to content

Commit

Permalink
Adapt to Permission::reset, DataObject::duplicate API changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Garion Herman committed Jun 4, 2017
1 parent 21a8c56 commit 49fbfcb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions code/model/Subsite.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ public static function changeSubsite($subsite)
}
}

Permission::flush_permission_cache();
Permission::reset();
}

/**
Expand Down Expand Up @@ -918,9 +918,10 @@ public function getMembersByPermission($permissionCodes = ['ADMIN'])
/**
* Duplicate this subsite
* @param bool $doWrite
* @param string $manyMany
* @return DataObject
*/
public function duplicate($doWrite = true)
public function duplicate($doWrite = true, $manyMany = 'many_many')
{
$duplicate = parent::duplicate($doWrite);

Expand Down

0 comments on commit 49fbfcb

Please sign in to comment.