Bug #21923 » wsOwnerGroups.patch
t3lib/class.t3lib_userauthgroup.php (working copy) | ||
---|---|---|
break;
|
||
default:
|
||
// Checking if the guy is admin:
|
||
if (t3lib_div::inList($wsRec['adminusers'],$this->user['uid'])) {
|
||
if (t3lib_div::inList($wsRec['adminusers'],'be_users_'.$this->user['uid'])) {
|
||
return array_merge($wsRec, array('_ACCESS' => 'owner'));
|
||
}
|
||
// Checking if he is owner 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'));
|
||
}
|
||
}
|
||
// Checking if he is reviewer user:
|
||
if (t3lib_div::inList($wsRec['reviewers'],'be_users_'.$this->user['uid'])) {
|
||
return array_merge($wsRec, array('_ACCESS' => 'reviewer'));
|
t3lib/stddb/tables.sql (working copy) | ||
---|---|---|
deleted tinyint(1) DEFAULT '0' NOT NULL,
|
||
title varchar(30) DEFAULT '' NOT NULL,
|
||
description varchar(255) DEFAULT '' NOT NULL,
|
||
adminusers varchar(255) DEFAULT '' NOT NULL,
|
||
adminusers text,
|
||
members text,
|
||
reviewers text,
|
||
db_mountpoints varchar(255) DEFAULT '' NOT NULL,
|
typo3/sysext/version/tca.php (working copy) | ||
---|---|---|
'config' => array(
|
||
'type' => 'group',
|
||
'internal_type' => 'db',
|
||
'allowed' => 'be_users',
|
||
'allowed' => 'be_users,be_groups',
|
||
'prepend_tname' => 1,
|
||
'size' => '3',
|
||
'maxitems' => '10',
|
||
'autoSizeMax' => 10,
|