[TYPO3-core] RFC: Feature #6685: De-admin the Tools module

Ingmar Schlecht ingmar at typo3.org
Fri Nov 9 23:59:58 CET 2007


Hi Christoph,

Christoph Koehler wrote:
> $this->pageinfo = t3lib_BEfunc::readPageAccess($this->id,$this-
>> perms_clause);
> $access = is_array($this->pageinfo) ? 1 : 0;
> 		
> if (($this->id && $access) || ($BE_USER->user['admin'] && !$this->id))
> 
> The id is always 0 and pageinfo is not an array, failing that first 
> condition and only enabling admins to access the module.
> So all modules would have to remove that if statement for access.

That is intended, because the modules might do things only admins should
be able to do.

cheers
Ingmar

-- 
Ingmar Schlecht
TYPO3 Association Active Member


More information about the TYPO3-team-core mailing list