Issue Bug Closed

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

Thomas Loeffler 02/13/09, 15:37 updated 12/10/13, 01:05

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)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.