CC-3749: Media Monitor should not load files pypo cannot read
-logic error
This commit is contained in:
parent
d98d23d483
commit
906b6e8bd0
1 changed files with 1 additions and 1 deletions
|
@ -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 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…
Add table
Add a link
Reference in a new issue