users that can edit items should be able to play them

This commit is contained in:
j 2012-02-08 12:10:26 +01:00
parent 7ad95d49e9
commit 9de8f260c8

View file

@ -762,8 +762,8 @@ pandora.getSortOperator = function(key) {
}; };
pandora.getVideoOptions = function(data) { pandora.getVideoOptions = function(data) {
var canPlayClips = pandora.site.capabilities.canPlayClips[pandora.user.level] >= data.rightslevel, var canPlayClips = data.editable || pandora.site.capabilities.canPlayClips[pandora.user.level] >= data.rightslevel,
canPlayVideo = pandora.site.capabilities.canPlayVideo[pandora.user.level] >= data.rightslevel, canPlayVideo = data.editable || pandora.site.capabilities.canPlayVideo[pandora.user.level] >= data.rightslevel,
options = {}; options = {};
options.subtitles = data.layers.subtitles options.subtitles = data.layers.subtitles
? data.layers.subtitles.map(function(subtitle) { ? data.layers.subtitles.map(function(subtitle) {