Merge pull request #2437 from emanuelschuetze/fix2435
Fixed AttributeError in MotionAccessPermissions (Fixed #2435)
This commit is contained in:
commit
4a1cad2988
@ -45,7 +45,7 @@ class MotionAccessPermissions(BaseAccessPermissions):
|
|||||||
for the projector. Removes several fields.
|
for the projector. Removes several fields.
|
||||||
"""
|
"""
|
||||||
data = full_data.copy()
|
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'):
|
if not field.get('public'):
|
||||||
try:
|
try:
|
||||||
data['comments'][i] = None
|
data['comments'][i] = None
|
||||||
|
Loading…
Reference in New Issue
Block a user