Project

General

Profile

Actions

Feature #23724

closed

Optimize query to determine whether a frontend user has access to content elements or pages

Added by Oliver Hader about 14 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-10-14
Due date:
% Done:

0%

Estimated time:
PHP Version:
5.2
Tags:
Complexity:
Sprint Focus:

Description

The WHERE part of the query to determine whether a frontend user has access to a particular element (tt_content in this example) looks like this:

(tt_content.fe_group='' OR tt_content.fe_group IS NULL OR tt_content.fe_group='0'
OR FIND_IN_SET('0',tt_content.fe_group)
OR FIND_IN_SET('-2',tt_content.fe_group)
OR FIND_IN_SET('2',tt_content.fe_group))

It could look like the following (to simplify the OR parts for each group):

(pages.fe_group='' OR pages.fe_group IS NULL OR pages.fe_group='0'
OR pages.uid IN (SELECT uid_local FROM pages_fe_groups_rel_mm WHERE uid_foreign IN (0,-2,2)))

(issue imported from #M15985)


Files

0015985.patch (12.1 KB) 0015985.patch Administrator Admin, 2010-10-14 16:13

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #23726: Refactor TCA definitions of table pagesClosedOliver Hader2010-10-14

Actions
Actions

Also available in: Atom PDF