fix: notify default policy not effective (#22379)

Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
This commit is contained in:
Jian Qiu
2025-04-13 09:56:09 +08:00
committed by GitHub
parent d5151f0e32
commit 36c87e17b7
3 changed files with 3 additions and 13 deletions
+3
View File
@@ -15,6 +15,8 @@
package policy
import (
"yunion.io/x/jsonutils"
"yunion.io/x/log"
"yunion.io/x/pkg/util/rbacscope"
"yunion.io/x/onecloud/pkg/util/rbacutils"
@@ -72,5 +74,6 @@ var (
)
func AppendDefaultPolicies(policies []rbacutils.SRbacPolicy) {
log.Infof("Appending default policies: %s", jsonutils.Marshal(policies))
predefinedDefaultPolicies = append(predefinedDefaultPolicies, policies...)
}
-12
View File
@@ -12,18 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package models
import (
-1
View File
@@ -39,7 +39,6 @@ func InitHandlers(app *appsrv.Application) {
db.AddScopeResourceCountHandler(API_VERSION, app)
taskman.AddTaskHandler(API_VERSION, app)
for _, manager := range []db.IModelManager{
taskman.TaskManager,
taskman.SubTaskManager,