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

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

behatnotneeded

Change-Id: Iacf30fcf803f73b39dc96635b4f165d5c8da1382
parent 869c6a96
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment