Update Api RelationshipTransformer

pull/1661/head
Daniel Supernault 6 years ago
parent 34419ce2cc
commit 16b426ec1e
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

@ -14,6 +14,9 @@ class RelationshipTransformer extends Fractal\TransformerAbstract
public function transform(Profile $profile)
{
$auth = Auth::check();
if(!$auth) {
return [];
}
$user = $auth ? Auth::user()->profile : false;
$requested = false;
if($user) {

Loading…
Cancel
Save