mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-10-29 17:58:36 +08:00
fix: string2scope ignore user scope
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user