Added authorization to galleries.