web: /accounts: return all accounts, not just top-level ones (#985)
Accounts are returned as a flat list, in tree order, with asubs fields empty.
This commit is contained in:
		
							parent
							
								
									92fb24b1af
								
							
						
					
					
						commit
						7c14e10858
					
				@ -83,7 +83,7 @@ getAccountsR = do
 | 
			
		||||
  VD{caps, j} <- getViewData
 | 
			
		||||
  when (CapView `notElem` caps) (permissionDenied "Missing the 'view' capability")
 | 
			
		||||
  selectRep $ do
 | 
			
		||||
    provideJson $ ledgerTopAccounts $ ledgerFromJournal Any j
 | 
			
		||||
    provideJson $ laccounts $ ledgerFromJournal Any j
 | 
			
		||||
 | 
			
		||||
getAccounttransactionsR :: Text -> Handler TypedContent
 | 
			
		||||
getAccounttransactionsR a = do
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user