Skip to content
Snippets Groups Projects
Commit d9dcfc5d authored by Malte Bauch's avatar Malte Bauch
Browse files

Update default admin role so it is possible to access the pnd routes

In cf3b16dd the nbi has been refactored
and therefore some pnd related operations have been moved from the
CoreServer to the PndServer. We've missed to update the default admin
role to have access to those new routes that have been introduced with
this change. This commit updates the default admin role to fix this
issue.
parent 3242db18
No related branches found
No related tags found
1 merge request!476Update default admin role so it is possible to access the pnd routes
Pipeline #150985 passed
...@@ -268,10 +268,10 @@ func ensureDefaultRoleExists() error { ...@@ -268,10 +268,10 @@ func ensureDefaultRoleExists() error {
if adminRole == nil { if adminRole == nil {
err := c.roleService.Add(rbacImpl.NewRole(uuid.New(), defaultAdminRoleName, "admin role", []string{ err := c.roleService.Add(rbacImpl.NewRole(uuid.New(), defaultAdminRoleName, "admin role", []string{
"/gosdn.core.CoreService/GetPnd", "/gosdn.pnd.PndService/GetPnd",
"/gosdn.core.CoreService/GetPndList", "/gosdn.pnd.PndService/GetPndList",
"/gosdn.core.CoreService/CreatePndList", "/gosdn.pnd.PndService/CreatePndList",
"/gosdn.core.CoreService/DeletePnd", "/gosdn.pnd.PndService/DeletePnd",
"/gosdn.rbac.UserService/CreateUsers", "/gosdn.rbac.UserService/CreateUsers",
"/gosdn.rbac.UserService/GetUser", "/gosdn.rbac.UserService/GetUser",
"/gosdn.rbac.UserService/GetUsers", "/gosdn.rbac.UserService/GetUsers",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment