do not switch in edit mode if locked
Merge pull request #1 from geoadmin/fix_conflict

Do not switch in edit mode if locked