mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: validator: support 'convert' as default action
fix #505, close #506
This commit is contained in:
1 parent
02c0d7aaa8
commit
1124ed9506
7 files changed
+11
-9
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user