http://code.google.com/appengine/docs/python/users/adminusers.html
user = users.get_current_user()

if user:
  print "Welcome, %s!" % user.nickname()
  if users.is_current_user_admin():
    print "<a href=\"/admin/\">Go to admin area</a>"
- - - - - -

The above shows how to restrict something unless you are admin can you
also do this in a template with python and GAE?  Something like this:

{% if admin %}
<b>ADMIN EYES ONLY</b>
{% endif %}

Thank you!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" 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/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to