Commit 8e4a1f64 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review

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

parents fba960b5 7c7fef27
......@@ -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.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