diff --git a/app/views/dashboard/components/add.blade.php b/app/views/dashboard/components/add.blade.php index e2d643a7..35aa28fe 100644 --- a/app/views/dashboard/components/add.blade.php +++ b/app/views/dashboard/components/add.blade.php @@ -56,7 +56,7 @@ - +
diff --git a/app/views/dashboard/components/edit.blade.php b/app/views/dashboard/components/edit.blade.php index e697c77e..0dd79aab 100644 --- a/app/views/dashboard/components/edit.blade.php +++ b/app/views/dashboard/components/edit.blade.php @@ -56,7 +56,7 @@
- +
diff --git a/app/views/dashboard/incidents/add.blade.php b/app/views/dashboard/incidents/add.blade.php index 401c9395..922cf76e 100644 --- a/app/views/dashboard/incidents/add.blade.php +++ b/app/views/dashboard/incidents/add.blade.php @@ -88,7 +88,7 @@
- +
diff --git a/app/views/dashboard/incidents/edit.blade.php b/app/views/dashboard/incidents/edit.blade.php index 45af87ae..bb4e8092 100644 --- a/app/views/dashboard/incidents/edit.blade.php +++ b/app/views/dashboard/incidents/edit.blade.php @@ -77,7 +77,7 @@
- + id}}>
diff --git a/app/views/dashboard/team/edit.blade.php b/app/views/dashboard/team/edit.blade.php index ab6da427..def41c7e 100644 --- a/app/views/dashboard/team/edit.blade.php +++ b/app/views/dashboard/team/edit.blade.php @@ -25,13 +25,13 @@
- isAdmin ? "disabled": "" }}> + isAdmin ? "disabled": "" }}>
- @if(Auth::user()->isAdmin) + @if($loggedUser->isAdmin) {{ trans('cachet.api.revoke') }} @endif
diff --git a/app/views/dashboard/team/index.blade.php b/app/views/dashboard/team/index.blade.php index 44b40c6d..2d9fdee4 100644 --- a/app/views/dashboard/team/index.blade.php +++ b/app/views/dashboard/team/index.blade.php @@ -8,7 +8,7 @@ {{ trans('dashboard.team.team') }} - @if(Auth::user()->isAdmin) + @if($loggedUser->isAdmin) {{ trans('dashboard.team.add.title') }} @@ -23,7 +23,7 @@
@foreach($teamMembers as $member)
- +
{{ $member->username }}
diff --git a/app/views/dashboard/user/index.blade.php b/app/views/dashboard/user/index.blade.php index 1818ca7a..2b8542d4 100644 --- a/app/views/dashboard/user/index.blade.php +++ b/app/views/dashboard/user/index.blade.php @@ -17,11 +17,11 @@
- +
- +
@@ -30,24 +30,24 @@
- + {{ trans('forms.user.api-token-help') }}

- @if(Auth::user()->hasTwoFactor) + @if($loggedUser->hasTwoFactor)
email, - Auth::user()->google_2fa_secret + $loggedUser->email, + $loggedUser->google_2fa_secret ); ?> @@ -58,7 +58,7 @@
diff --git a/app/views/partials/dashboard/sidebar.blade.php b/app/views/partials/dashboard/sidebar.blade.php index 7b2c2c6e..f75d9dbd 100644 --- a/app/views/partials/dashboard/sidebar.blade.php +++ b/app/views/partials/dashboard/sidebar.blade.php @@ -1,4 +1,4 @@ -@if(Auth::check()) +@if($loggedUser)