mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-07-22 09:37:57 +00:00
fix: allow unauthenticated access to SD poster proxy endpoint
ProgramViewSet.get_permissions() was falling through to Authenticated() for the poster action since it wasn't in permission_classes_by_action. Add explicit AllowAny check for the poster action.
This commit is contained in:
parent
7c91508f3c
commit
aa9e78f858
1 changed files with 2 additions and 0 deletions
|
|
@ -471,6 +471,8 @@ class ProgramViewSet(viewsets.ModelViewSet):
|
|||
_sd_poster_error_cache: dict = {}
|
||||
|
||||
def get_permissions(self):
|
||||
if self.action == 'poster':
|
||||
return [AllowAny()]
|
||||
try:
|
||||
return [perm() for perm in permission_classes_by_action[self.action]]
|
||||
except KeyError:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue