[TYPO3-dev] Rights for Content Elements
Tapio Markula
tapio.markula at atwebteam.com
Thu Apr 12 13:44:16 CEST 2007
Dmitry Dulepov kirjoitti:
> Martin Kutschker wrote:
>> A hook for access check has been added recently. It's definitely in
>> SVN perhaps also for 4.1. Have a look at the latest postings in the
>> Core list, I think Dmitry Dulepov added it.
>
> This hook makes it easy to add custom permission check (like for FCEs,
> where admin can let users to create oonly certain FCEs). But the
> function for checking permissions exists already for a long time. I do
> not know why it is not used by old page module. May be simply forgotten.
>
> Check is as simple as:
>
> if ($GLOBALS['BE_USER']->recordEditAccessInternals('tt_content',
> $idOrRow)) {
> // Add edit/delete icons
> }
What about contextual menus - I recommend to disable them.
If not possible to edit, then IMO all buttons off.
In which version of TemplaVoila this has done - I didn't find it in
1.3
More information about the TYPO3-dev
mailing list