Forums / Developer / Limit user's ability to create 1 or X objects of a class

Limit user's ability to create 1 or X objects of a class

Author Message

Piotrek Karaś

Tuesday 11 December 2007 4:34:32 am

Hello everyone,

Has anyone tried to limit user's ability to create more than 1or X objects of a given class? I would suspect 1 would be the most common scenario, but other number would also be interesting.

I have a solution in mind, but I thought I'd check before I spend hours implementing it ;)

Thanks for any suggestions!
Piotrek

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

Piotrek Karaś

Tuesday 11 December 2007 10:48:54 pm

No response, so I spent those hours and something came out of it:
http://ez.no/developer/contribs/datatypes/ez_user_create_limit

This is totally raw and not stable (but not necessarily unstable ;)
But should be enough just to get the idea.

I would be grateful for any feedback.
Thanks.

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu