At present i have everything in 2 master folders: MUSIC & VIDEO. What is the nest way too give a user access to one of these and not the other? All help is greatly appreciated.

Moderator: moderators
npinto59 wrote:I've just spent the better part of an hour reading through the forums and I can't seem to find what I need, so here goes a post. I'd like to limit certain users to access only certain folders within Subsonic. A couple of examples would be 1) the ROKU I only want to use for video streaming and i don't want my 20k + songs showing up. 2) The grandparents would like access to my videos folder but don't need to see my music 3) Friends would like to listen to music but I would prefer they didn't access my videos.
At present i have everything in 2 master folders: MUSIC & VIDEO. What is the nest way too give a user access to one of these and not the other? All help is greatly appreciated.
<c:if test="${model.user.username eq 'grandma'}">
<script>
document.getElementById("musicFolder").value = "videos";
document.getElementById("musicFolder").disabled = true;
</script>
</c:if>
<script type="text/javascript">
<c:choose>
<c:when test="${model.user.username eq 'grandma' || model.username eq 'roku'}">
document.getElementById("musicFolder").value = "videos";
document.getElementById("musicFolder").disabled = true;
</c:when>
<c:when test="${model.user.username eq 'friend'}">
document.getElementById("musicFolder").value = "music";
document.getElementById("musicFolder").disabled = true;
</c:when>
</c:otherwise>
document.getElementById("musicFolder").disabled = false;
</c:otherwise>
</c:choose>
</script>
Users browsing this forum: No registered users and 12 guests