ユーザの本人判定をModelに逃した

This commit is contained in:
shibafu
2017-11-05 22:29:09 +09:00
parent 7e9501ab9d
commit 95204736ef
5 changed files with 19 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
@extends('user.base')
@section('tab-content')
@if ($user->is_protected && !(Auth::check() && $user->id === Auth::user()->id))
@if ($user->is_protected && !$user->isMe())
<p class="mt-4">
<span class="oi oi-lock-locked"></span> このユーザはチェックイン履歴を公開していません。
</p>