Commit 7c7fef27 authored by Son Nguyen's avatar Son Nguyen
Browse files

Bug 1598672: Ignore default site pages (template=2) when creating collections

behatnotneeded

Change-Id: Iacf30fcf803f73b39dc96635b4f165d5c8da1382
parent 869c6a96
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -557,6 +557,7 @@ class Collection {
     * Get the available views the current user can choose to add to their collections.
     * Restrictions on this list include:
     * - currently dashboard, group and profile views are ignored to solve access issues
     * - default pages (with template == 2) are ignored
     * - each view can only belong to one collection
     * - locked/submitted views can't be added to collections
     *
@@ -584,6 +585,7 @@ class Collection {
            WHERE " . $wherestm .
            "   AND cv.view IS NULL
                AND v.type NOT IN ('dashboard','grouphomepage','profile')
                AND v.template != 2
                AND v.submittedgroup IS NULL
                AND v.submittedhost IS NULL
            GROUP BY v.id, v.title