Fixed AttributeError in MotionAccessPermissions (Fixed #2435)

This commit is contained in:
Emanuel Schuetze 2016-09-26 20:26:59 +02:00
parent 223b168441
commit 31361f9f54

View File

@ -45,7 +45,7 @@ class MotionAccessPermissions(BaseAccessPermissions):
for the projector. Removes several fields.
"""
data = full_data.copy()
for i, field in enumerate(self.get_comments_config_fields()):
for i, field in enumerate(config['motions_comments']):
if not field.get('public'):
try:
data['comments'][i] = None