Commit 0439cd47 authored by Robert Lyon's avatar Robert Lyon
Browse files

Bug 1928900: Include the progress page in access token rules



When first setting up the token

Change-Id: I4e93fb2e6be3c78a362d950c8e14b4ac79ad242d
Signed-off-by: default avatarRobert Lyon <robertl@catalyst.net.nz>
parent adc54bc2
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2007,7 +2007,8 @@ class Collection {
     * @return object|false The view_access record for the first view's secret URL
     */
    public function new_token($visible=true) {
        $viewids = $this->get_viewids();
        $viewids = get_column('collection_view', 'view', 'collection', $this->id);

        // It's not possible to add a secret key to a collection with no pages
        if (!$viewids) {
            return false;