Update the geonode_authorize_layer function to support groups.