xbmc/xbmc — pull request #656 by Montellese (2012-01-25 15:37:24+00:00)
Title: jsonrpc: don't list locked sources or their subdirectories

This commit prevents sources with a (not yet deactivated) lock from being listed when calling Files.GetSources. The reason why they aren't listed at all is because JSON-RPC does not have a way to let the user enter the password/code to deactivate the lock.

Furthermore on every call to Files.GetDirectory it checks whether the given directory path is part of a locked source and if so does not list its content.

As I never use the Master Lock or Profiles myself I'd like to get some feedback on this and if there might be a better way to solve this.