Project

General

Profile

Actions

Bug #15671

closed

Can't add content when logged in as non-admin

Added by Steven Weiss almost 19 years ago. Updated over 18 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2006-02-19
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.0
PHP Version:
5
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Hi,
when you are logged in as non-admin and want to add a new content element with the green templavoila page module there's always the message

"Sorry, you didn't have proper permissions to perform this change"

although the user rights are fine!

After some debugging I found out that the problem is in the core:

in t3lib/class.t3lib_tcemain.php there's addDefaultPermittedLanguageIfNotSet(). The following line will produce the error:

$rows = array_merge(array('uid'=>0),$GLOBALS['TYPO3_DB']->exec_SELECTgetRows('uid','sys_language','pid=0'.t3lib_BEfunc::deleteClause('sys_language')),array('uid'=>-1));

It should be
array_merge(array(array('uid'=>0)),$GLOBALS['TYPO3_DB']->exec_SELECTgetRows('uid','sys_language','pid=0'.t3lib_BEfunc::deleteClause('sys_language')));

Then it works ;-)
(issue imported from #M2628)


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #15655: Users with right can't create content elements via TemplaVoila, but can via "normal" page toolClosed2006-02-17

Actions

No data to display

Actions

Also available in: Atom PDF