Fixed issue #73.
This commit is contained in:
parent
a740918a20
commit
2d03b56bec
@ -437,7 +437,7 @@ class User extends Rails\ActiveRecord\Base
|
|||||||
elseif (method_exists($record, $method))
|
elseif (method_exists($record, $method))
|
||||||
return $record->$method($this);
|
return $record->$method($this);
|
||||||
elseif (method_exists($record, 'can_change'))
|
elseif (method_exists($record, 'can_change'))
|
||||||
$record->can_change($this, $attribute);
|
return $record->can_change($this, $attribute);
|
||||||
else
|
else
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user