template_name = 'projectrequest_view.html'
def getAuthorities(self, request):
- authorities_query = Query.get('authority').select('name', 'authority_hrn')
+ if theme.theme == 'fed4fire':
+ authorities_query = Query.get('myslice:authority').select('name', 'authority_hrn')
+ else:
+ authorities_query = Query.get('authority').select('name', 'authority_hrn')
authorities = execute_admin_query(request, authorities_query)
if authorities is not None:
# Remove the root authority from the list
});
/*
- $("#authority_hrn").load("/rest/user/", {"fields" : ["parent_authority"], "filters": {"user_hrn": "{{ user_hrn }}"}}, function(data) {
+ $("#authority_hrn").load("/rest/myslice:user/", {"fields" : ["parent_authority"], "filters": {"user_hrn": "{{ user_hrn }}"}}, function(data) {
var jsonData = JSON.parse(data);
$(this).attr("value", jsonData[0]['parent_authority']);
});