fix function signature
standarize signature of allow_creation function, more use of object interface in sections/view.php