Skip to content

Commit

Permalink
3.1.16 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
dhensby committed Feb 15, 2016
1 parent 398cbb0 commit f57951c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class MasqueradeGridFieldDetailForm_ItemRequest extends GridFieldDetailForm_Item

public function masquerade()
{
$member = $this->getRecord();
$member = $this->hasMethod('getRecord') ? $this->getRecord() : $this->record;
if (!$member->hasMethod('canMasquerade') || !$member->hasMethod('masquerade') || !$member->canMasquerade()) {
Security::permissionFailure($this->getController());
return;
Expand Down

0 comments on commit f57951c

Please sign in to comment.