Merge "Follow-up access rules restrictions change"
This commit is contained in:
commit
011ed92ef0
|
@ -93,9 +93,8 @@ class ShareAccessesController(wsgi.Controller, wsgi.AdminActionsMixin):
|
||||||
enable_ceph=True,
|
enable_ceph=True,
|
||||||
enable_ipv6=True)
|
enable_ipv6=True)
|
||||||
|
|
||||||
access_level = search_opts.get('access_level')
|
access_level = search_opts.get('access_level', None)
|
||||||
if ('access_level' in search_opts and (
|
if access_level and access_level not in constants.ACCESS_LEVELS:
|
||||||
search_opts['access_level'] not in constants.ACCESS_LEVELS)):
|
|
||||||
raise exception.InvalidShareAccessLevel(level=access_level)
|
raise exception.InvalidShareAccessLevel(level=access_level)
|
||||||
|
|
||||||
@wsgi.Controller.authorize('index')
|
@wsgi.Controller.authorize('index')
|
||||||
|
|
Loading…
Reference in New Issue