CC-3749: Media Monitor should not load files pypo cannot read

-logic error
This commit is contained in:
Martin Konecny 2012-05-04 15:22:54 -04:00
parent d98d23d483
commit 906b6e8bd0

View file

@ -79,7 +79,7 @@ class MediaMonitorCommon:
def is_readable(self, item, is_dir):
try:
return self.is_user_readable(item, 'www-data', 'www-data') \
and not self.is_user_readable(item, 'pypo', 'pypo')
and self.is_user_readable(item, 'pypo', 'pypo')
except Exception, e:
self.logger.warn("Failed to check owner/group/permissions for %s", item)
return False