mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-10-29 17:58:36 +08:00
修正:1. attach权限校验总是false 2. 增加climc user
default_project_id相关方法
This commit is contained in:
@@ -103,11 +103,11 @@ func (manager *SJointResourceBaseManager) FetchByIds(masterId string, slaveId st
|
||||
}
|
||||
|
||||
func (manager *SJointResourceBaseManager) AllowListDescendent(ctx context.Context, userCred mcclient.TokenCredential, model IStandaloneModel, query jsonutils.JSONObject) bool {
|
||||
return false
|
||||
return IsAdminAllowList(userCred, manager)
|
||||
}
|
||||
|
||||
func (manager *SJointResourceBaseManager) AllowAttach(ctx context.Context, userCred mcclient.TokenCredential, master IStandaloneModel, slave IStandaloneModel) bool {
|
||||
return false
|
||||
return IsAdminAllowCreate(userCred, manager)
|
||||
}
|
||||
|
||||
func JointModelExtra(jointModel IJointModel, extra *jsonutils.JSONDict) *jsonutils.JSONDict {
|
||||
|
||||
Reference in New Issue
Block a user