]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/modules/ui_objects.py
Simplify registry logic
[osqa.git] / forum / modules / ui_objects.py
index a51044ad527f3a9fe661880258c2060e389812dc..7fae3d43a8ef4bbf41c8056e73a4d53401fef799 100644 (file)
@@ -40,6 +40,7 @@ class Visibility(object):
         
 
 Visibility.PUBLIC = Visibility('public')
+Visibility.ANONYMOUS = Visibility('authenticated', negated=True)
 Visibility.AUTHENTICATED = Visibility('authenticated')
 Visibility.STAFF = Visibility('staff')
 Visibility.SUPERUSER = Visibility('superuser')