mirror of
https://github.com/aleksilassila/reiverr.git
synced 2026-04-27 03:05:10 +02:00
feat: Experimental movie playback through plugins
This commit is contained in:
@@ -89,7 +89,8 @@ export class UserSourcesService {
|
||||
}
|
||||
|
||||
getSourceSettings(user: User, sourceId: string) {
|
||||
return user.mediaSources?.find((source) => source.id === sourceId)
|
||||
?.pluginSettings;
|
||||
return user.mediaSources
|
||||
?.filter((s) => s?.enabled)
|
||||
?.find((source) => source.id === sourceId)?.pluginSettings;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -65,7 +65,6 @@ export class UsersController {
|
||||
@Param('id') id: string,
|
||||
@GetUser() callerUser: User,
|
||||
): Promise<UserDto> {
|
||||
console.log('callerUser', callerUser);
|
||||
if (!callerUser.isAdmin && callerUser.id !== id) {
|
||||
throw new NotFoundException();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user