[TYPO3-dev] Can user X access record Y?

Michael typo3ml at schams.net
Mon May 28 06:13:35 CEST 2012


On 2012-05-10 02:08, Oliver Salzburg wrote:

> If I pick an arbitrary user (user id 42) and an arbitrary other 
> record
> (table tx_news_domain_model_file, uid:123), what is the correct
> approach to check access permissions set between these object?

I stumbled across this chapter today and remembered your question, so 
maybe
this is an option for you?

http://typo3.org/documentation/document-library/core-documentation/doc_core_api/
Chapter 3.6. "Backend User Object".

And then something like:

$BE_USER->check(...);
$BE_USER->doesUserHaveAccess(...);

But I haven't used these yet, so this is just the way I would 
investigate further.

HTH - Cheers
Michael




More information about the TYPO3-dev mailing list