mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-21 14:19:49 +08:00
为yunonagent的通知增加缺省策略,避免前端报权限不足错误
This commit is contained in:
@@ -60,6 +60,24 @@ var (
|
||||
Action: PolicyActionGet,
|
||||
Result: rbacutils.UserAllow,
|
||||
},
|
||||
{
|
||||
Service: "yunionagent",
|
||||
Resource: "notices",
|
||||
Action: PolicyActionList,
|
||||
Result: rbacutils.UserAllow,
|
||||
},
|
||||
{
|
||||
Service: "yunionagent",
|
||||
Resource: "readmarks",
|
||||
Action: PolicyActionList,
|
||||
Result: rbacutils.UserAllow,
|
||||
},
|
||||
{
|
||||
Service: "yunionagent",
|
||||
Resource: "readmarks",
|
||||
Action: PolicyActionCreate,
|
||||
Result: rbacutils.UserAllow,
|
||||
},
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user