web: don't disable /add PUT with --serve-api, that's considered API
This commit is contained in:
		
							parent
							
								
									a154ea72c0
								
							
						
					
					
						commit
						ef1bd24edc
					
				| @ -61,7 +61,6 @@ postAddR = do | |||||||
| -- The web form handler above should probably use PUT as well. | -- The web form handler above should probably use PUT as well. | ||||||
| putAddR :: Handler RepJson | putAddR :: Handler RepJson | ||||||
| putAddR = do | putAddR = do | ||||||
|   checkServerSideUiEnabled |  | ||||||
|   VD{caps, j, opts} <- getViewData |   VD{caps, j, opts} <- getViewData | ||||||
|   when (CapAdd `notElem` caps) (permissionDenied "Missing the 'add' capability") |   when (CapAdd `notElem` caps) (permissionDenied "Missing the 'add' capability") | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user