Modify works edition only in base course - refs BT#8101
Merge branch 'DeEvo-8101' into 1.9.x
Blocking page edit_work.php if session is set but obj belongs to the course base see BT#8101