core: validator: support 'convert' as default action

fix #505, close #506
This commit is contained in:
undefined committed 2023-02-05 13:07:46 +08:00
1 parent 02c0d7aaa8
commit 1124ed9506
7 files changed
+11 -9

No files matched your search

+1 -1
View File
@@ -297,7 +297,7 @@ class SystemUserPrivHandler extends SystemHandler {
@requireSudo
@param('uid', Types.Int)
@param('priv', Types.UnsignedInt)
@param('system', Types.Boolean, true)
@param('system', Types.Boolean)
async post(domainId: string, uid: number, priv: number, editSystem: boolean) {
if (!editSystem) {
const udoc = await user.getById(domainId, uid);