Project

General

Profile

Actions

Bug #20015

closed

Old check for workspace access if owner in class.t3lib_userauthgroup.php

Added by Thomas Loeffler almost 16 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Workspaces
Target version:
-
Start date:
2009-02-13
Due date:
% Done:

0%

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

Description

After changing the field "owner" to use users and groups in a recent TYPO3 update, the access check gets a false return.

In the class "t3lib_userauthgroup", function "checkWorkspace()" in line 1479:

Old:
// Checking if the guy is admin:
if (t3lib_div::inList($wsRec['adminusers'], $this->user['uid'])) {
return array_merge($wsRec, array('_ACCESS' => 'owner'));
}

Should be:
// Checking if the guy is admin:
if (t3lib_div::inList($wsRec['adminusers'],'be_users_'.$this->user['uid'])) {
return array_merge($wsRec, array('_ACCESS' => 'owner'));
}
// Checking if he is admin through a user group of his:
foreach($this->userGroupsUID as $groupUid) {
if (t3lib_div::inList($wsRec['adminusers'],'be_groups_'.$groupUid)) {
return array_merge($wsRec, array('_ACCESS' => 'owner'));
}
}

(issue imported from #M10434)

Actions

Also available in: Atom PDF