web: don't disable /add PUT with --serve-api, that's considered API

This commit is contained in:
Simon Michael 2019-08-17 16:58:36 +01:00
parent a154ea72c0
commit ef1bd24edc

View File

@ -61,7 +61,6 @@ postAddR = do
-- The web form handler above should probably use PUT as well.
putAddR :: Handler RepJson
putAddR = do
checkServerSideUiEnabled
VD{caps, j, opts} <- getViewData
when (CapAdd `notElem` caps) (permissionDenied "Missing the 'add' capability")