Removed check if user can change or not vis lock attribute
Correctly indented