fix: string2scope ignore user scope

This commit is contained in:
Qiu Jian
2019-10-11 22:06:05 +08:00
parent 3b991c6c5a
commit 2c7c817ddc
3 changed files with 11 additions and 1 deletions
+2
View File
@@ -643,6 +643,8 @@ func String2ScopeDefault(str string, defScope TRbacScope) TRbacScope {
return ScopeDomain
case string(ScopeProject):
return ScopeProject
case string(ScopeUser):
return ScopeUser
case "true":
return ScopeSystem
default: