A self-hosted media server and file management system
Vue ffmpegfile-serverjellyfinlaravelmediamedia-playermedia-servermediabrowsermediaservermusicmusic-librarymusic-playermusicplayerself-hostedvuejs
fix: incorrect auth negation
aminnausin39b16c6939af
diff --git a/app/Http/Controllers/Api/V1/FolderController.php b/app/Http/Controllers/Api/V1/FolderController.phpindex c0db954a..318ffd4a 100755--- a/app/Http/Controllers/Api/V1/FolderController.php+++ b/app/Http/Controllers/Api/V1/FolderController.php@@ -24,7 +24,7 @@ class FolderController extends Controller {$category = Category::find($validated['category_id']);- if (! $category || ($category->is_private && Gate::allows('admin'))) {+ if (! $category || ($category->is_private && ! Gate::allows('admin'))) {return $this->error(null, 'No category found matching ' . $validated['category_id'], 403);}