Add COMMON_ALLOW_ANONYMOUS_ACCESS configuration option to allow access to non authenticated users

This commit is contained in:
Roberto Rosario
2012-01-08 04:54:15 -04:00
parent 467be05baa
commit c2fcbfe299
4 changed files with 53 additions and 15 deletions

View File

@@ -64,3 +64,12 @@ register_setting(
default=u'username',
description=_(u'Controls the mechanism used to authenticated user. Options are: username, email'),
)
register_setting(
namespace=u'common',
module=u'common.conf.settings',
name=u'ALLOW_ANONYMOUS_ACCESS',
global_name=u'COMMON_ALLOW_ANONYMOUS_ACCESS',
default=False,
description=_(u'Allows non authenticated users access to all views'),
)