Change deprecated authorization functions to work with current ckan version