CC-3749: Media Monitor should not load files pypo cannot read
-fixed
This commit is contained in:
parent
e13d06df45
commit
7e9d1a3308
|
@ -79,7 +79,7 @@ class MediaMonitorCommon:
|
||||||
def is_readable(self, item, is_dir):
|
def is_readable(self, item, is_dir):
|
||||||
try:
|
try:
|
||||||
return self.is_user_readable(item, 'www-data', 'www-data') \
|
return self.is_user_readable(item, 'www-data', 'www-data') \
|
||||||
and not self.is_user_readable(item, 'pypo', 'pypo'):
|
and not self.is_user_readable(item, 'pypo', 'pypo')
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
self.logger.warn("Failed to check owner/group/permissions for %s", item)
|
self.logger.warn("Failed to check owner/group/permissions for %s", item)
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in New Issue