Updates geonode_authorize_layer procedure to new data schema (abstract inheritance)

there is no layer.id since layer inherits from resourcebase in the new schema. ditto for layer.owner_id.