diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-06-20 10:55:10 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-06-20 10:55:10 -0700 |
commit | 75002732284c85dfd82934b04ef477fc5a274bfe (patch) | |
tree | 9e09b3db74c07ade470e595d1ed659cc087cf626 /lib/gallery.common.js | |
parent | fcd39be28bbfc79186bbc4d6ee34bfc8cdfdc6e7 (diff) |
Simplify the descendent logic. viewable() already joins with the
items table so there's no need for a subquery. The subquery could
generate way too many ids since it didn't pay attention to
permissions. This isn't a security problem since we were restricting
the item ids according to permissions in the outer query, but it's
wasteful.
Diffstat (limited to 'lib/gallery.common.js')
0 files changed, 0 insertions, 0 deletions