[Typo3-dev] Making a better access control - partially SOLVED!
tapio
tapio.markula at dnainternet.net
Tue Aug 23 14:32:03 CEST 2005
In the 'Quick Edit mode' user access test goes here:
else {
$rec['uid'] = $uidVal;
// Checking internals access:
$recordAccess =
$BE_USER->recordEditAccessInternals($eRParts[0],$uidVal);
Changing it at this way
else {
$rec['uid'] = $uidVal;
// Checking internals access:
$recordAccess =
$BE_USER->recordEditAccessInternals($eRParts[0],$uidVal);
if($recordAccess==1)
{
if($BE_USER->user[admin]==0 && $rec[editlock]==1)
$recordAccess=0;
}
}
in the 'Quick Edit' mode can prevent editing individual records from
users, which are not admin users. Now I shoud make the same also for
colums mode and FE-editing, which use the 'alt_doc.php'.
Any ideas, where to start.
Needs to in $TCA on field for 'tt_content.editlock' (I made an extension
for that).
More information about the TYPO3-dev
mailing list