|
@@ -62,7 +62,7 @@ def list_sentry_roles_by_group(request):
|
|
|
result = {'status': -1, 'message': 'Error'}
|
|
result = {'status': -1, 'message': 'Error'}
|
|
|
|
|
|
|
|
try:
|
|
try:
|
|
|
- if request.POST['groupName']:
|
|
|
|
|
|
|
+ if request.POST.get('groupName'):
|
|
|
groupName = request.POST['groupName']
|
|
groupName = request.POST['groupName']
|
|
|
else:
|
|
else:
|
|
|
# Admins can see everything, other only the groups they belong too
|
|
# Admins can see everything, other only the groups they belong too
|