change in appadmin auth
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.4.7-stable+timestamp.2013.05.31.21.30.35
|
Version 2.4.7-stable+timestamp.2013.05.31.21.33.54
|
||||||
|
|||||||
@@ -38,8 +38,7 @@ elif (remote_addr not in hosts) and (remote_addr != "127.0.0.1"):
|
|||||||
raise HTTP(200, T('appadmin is disabled because insecure channel'))
|
raise HTTP(200, T('appadmin is disabled because insecure channel'))
|
||||||
|
|
||||||
if request.function in ('auth_manage','manage') and 'auth' in globals():
|
if request.function in ('auth_manage','manage') and 'auth' in globals():
|
||||||
if not auth.has_membership(auth.settings.manager_group_id):
|
auth.requires_membership(auth.settings.manager_group_role)(lambda: None)()
|
||||||
raise HTTP(404)
|
|
||||||
menu = False
|
menu = False
|
||||||
elif (request.application == 'admin' and not session.authorized) or \
|
elif (request.application == 'admin' and not session.authorized) or \
|
||||||
(request.application != 'admin' and not gluon.fileutils.check_credentials(request)):
|
(request.application != 'admin' and not gluon.fileutils.check_credentials(request)):
|
||||||
|
|||||||
@@ -38,8 +38,7 @@ elif (remote_addr not in hosts) and (remote_addr != "127.0.0.1"):
|
|||||||
raise HTTP(200, T('appadmin is disabled because insecure channel'))
|
raise HTTP(200, T('appadmin is disabled because insecure channel'))
|
||||||
|
|
||||||
if request.function in ('auth_manage','manage') and 'auth' in globals():
|
if request.function in ('auth_manage','manage') and 'auth' in globals():
|
||||||
if not auth.has_membership(auth.settings.manager_group_id):
|
auth.requires_membership(auth.settings.manager_group_role)(lambda: None)()
|
||||||
raise HTTP(404)
|
|
||||||
menu = False
|
menu = False
|
||||||
elif (request.application == 'admin' and not session.authorized) or \
|
elif (request.application == 'admin' and not session.authorized) or \
|
||||||
(request.application != 'admin' and not gluon.fileutils.check_credentials(request)):
|
(request.application != 'admin' and not gluon.fileutils.check_credentials(request)):
|
||||||
|
|||||||
@@ -38,8 +38,7 @@ elif (remote_addr not in hosts) and (remote_addr != "127.0.0.1"):
|
|||||||
raise HTTP(200, T('appadmin is disabled because insecure channel'))
|
raise HTTP(200, T('appadmin is disabled because insecure channel'))
|
||||||
|
|
||||||
if request.function in ('auth_manage','manage') and 'auth' in globals():
|
if request.function in ('auth_manage','manage') and 'auth' in globals():
|
||||||
if not auth.has_membership(auth.settings.manager_group_id):
|
auth.requires_membership(auth.settings.manager_group_role)(lambda: None)()
|
||||||
raise HTTP(404)
|
|
||||||
menu = False
|
menu = False
|
||||||
elif (request.application == 'admin' and not session.authorized) or \
|
elif (request.application == 'admin' and not session.authorized) or \
|
||||||
(request.application != 'admin' and not gluon.fileutils.check_credentials(request)):
|
(request.application != 'admin' and not gluon.fileutils.check_credentials(request)):
|
||||||
|
|||||||
Reference in New Issue
Block a user