2008/9/12 Alessandro Ronchi <[EMAIL PROTECTED]>:
> 2008/9/12 kbochert <[EMAIL PROTECTED]>:
>>
>> Yes - restricted to user.is_staff
>>
>> Suppose I don't trust my staff? I would like to restrict to
>> user.is_superuser and prevent my staff from messing about with the
>> site settings.
>>
>> I seem to have solved it
>>
>> At the very start of group_settings():
>>
>>    if not request.user.is_superuser:
>>        return render_to_response("configuration/need_super.html", {
>>            }, context_instance=RequestContext(request))
>>

But I think ti should be better not to change the satchmo code for
every setting, and using instead a configuration to make the satchmo
code generic and customizable.


-- 
Alessandro Ronchi
Skype: aronchi
http://www.alessandroronchi.net

SOASI Soc.Coop. - www.soasi.com
Sviluppo Software e Sistemi Open Source
Sede: Via Poggiali 2/bis, 47100 Forlì (FC)
Tel.: +39 0543 798985 - Fax: +39 0543 579928

Rispetta l'ambiente: se non ti è necessario, non stampare questa mail

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Satchmo users" 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/satchmo-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to