Add user roles system
This commit is contained in:
@@ -52,7 +52,7 @@
|
||||
<br>
|
||||
@php $download = $episode->getDownloadByType('UHD'); @endphp
|
||||
@isset($download)
|
||||
@if (!Auth::user()->is_patreon)
|
||||
@if (!Auth::user()->hasRole(\App\Enums\UserRole::SUPPORTER))
|
||||
@if (config('hstream.free_downloads'))
|
||||
<p class="font-bold text-gray-800 dark:text-gray-200">
|
||||
<i class="fa-solid fa-lock-open pr-[4px] text-yellow-600"></i> 4k
|
||||
@@ -91,7 +91,7 @@
|
||||
|
||||
<br>
|
||||
@if ($episode->interpolated_uhd)
|
||||
@if (!Auth::user()->is_patreon)
|
||||
@if (!Auth::user()->hasRole(\App\Enums\UserRole::SUPPORTER))
|
||||
@if (config('hstream.free_downloads'))
|
||||
<p class="font-bold text-gray-800 dark:text-gray-200">
|
||||
<i class="fa-solid fa-lock-open pr-[4px] text-yellow-600"></i> 4k 48fps
|
||||
|
||||
Reference in New Issue
Block a user