Hello,

I have a project in which we have so far 3 user roles - superadmin,
admin and user. (Super)Admins can log into the admin panel. But now
the client needs a 4th role - translator.

Translator will be able to:
* log into the admin panel
* view all values in admin panel
* modify values in admin panel, but only in language(s) he's been
permitted to do so by (super)admin

I guess some of you have developed such systems, so what is in your
opinion the best way to handle this task?

I thought of adding methods in each model that has language support
that could unset the unneeded array keys. There will possibly be many
models in which saveAll() will be used (saving multiple phrases at a
time, etc.), so I don't think I can refuse to save at the validation
level.

Another thing is storing the permissions - do you think it's better to
add each language as ACO or maybe make a HABTM table where language
permissions would be stored?

All suggestions welcome.


Regards,
Piotr
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to