-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement client playlists #17
base: master
Are you sure you want to change the base?
Conversation
Just append /admin at the end of your URL to access the admin panel. |
Arey I know about the '/admin' thing. What I'm asking is, Is there a check in the code such that, say, a command is run only by an admin... |
Actually the socket is open for everyone (we need to close it to avoid breach). We have only created a check in the front-end template. |
@SebastinSanty, Will do that too... |
This is the check https://github.com/OSDLabs/Encore/blob/master/views/index.html#L23-L25 |
@SebastinSanty Hard scan is registered to one of the socket events in the backend right? |
@prampey Yes, it is |
I think it pertains to |
Isn't |
@utkarshme Yeah, it is public and that's the downside. This can be exploited only if the enduser makes a socket-client and connects (rare case). After our initial release, we can create an authenticated socket connection, to avoid external interference This? https://github.com/OSDLabs/Encore/blob/master/routes/index.js#L110-L132 |
Even though it's public, you can use the middleware functions to ensure access to only an admin or registered user right? |
I got two ways to solve this issue :
So based on above we can have two ways to store/get playlists:
Also we might be able to tackle the admin problems with this. So yeah if you people agree with me on this then we can continue with either of the ideas or improve on them. |
@SebastinSanty, that works for a function that takes |
Oh yes, I agree. I didn't notice the socket events you mentioned. |
I think neDBSessionStore would be better in long run as we will be able to recommend songs and even implement public/share playlists better this way (I think so!). |
Addresses #5
Do not merge. Not complete. Will keep adding commits as things are done.
What works:
What I want to know is,