[TYPO3-50-general] Generic solution for disabled/enabled records

Pankaj Lele pankaj at lelesys.com
Thu Nov 1 08:29:04 CET 2012


Hi Julian,

> what is the best way to get a generic way for disabled/enabled records
> (like a comment or a tutorial for example) ?
>
> For example, everyone can write a comment in a blog, but all new
> comments must be approved by an admin. So all new comments are stored
> with a disabled = 1 flag.
>
> I think the best way is to resolve this via AOP. Are there any ideas or
> existing solutions ?

I think the best way would be to do it with Security policies. So with 
proper content security definitions [1] you can define Normal users can 
only read disabled = 0 objects and Admins can read any objects.

[1] 
http://flow.typo3.org/documentation/guide/partiii/security.html#content-security

-- 
Pankaj Lele
CTO - Lelesys, India
http://www.lelesys.com
Twitter: @pankajlele


More information about the TYPO3-project-5_0-general mailing list