Add user roles system

This commit is contained in:
2026-01-16 23:14:47 +01:00
parent c0be2e294a
commit e5ef197ed6
21 changed files with 206 additions and 85 deletions

View File

@@ -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