Skip to content
Snippets Groups Projects
Commit 367ce093 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 a9c223b6
No related branches found
No related tags found
No related merge requests found
Pipeline #150079 failed
......@@ -268,10 +268,10 @@ func ensureDefaultRoleExists() error {
if adminRole == nil {
err := c.roleService.Add(rbacImpl.NewRole(uuid.New(), defaultAdminRoleName, "admin role", []string{
"/gosdn.core.CoreService/GetPnd",
"/gosdn.core.CoreService/GetPndList",
"/gosdn.core.CoreService/CreatePndList",
"/gosdn.core.CoreService/DeletePnd",
"/gosdn.pnd.PndService/GetPnd",
"/gosdn.pnd.PndService/GetPndList",
"/gosdn.pnd.PndService/CreatePndList",
"/gosdn.pnd.PndService/DeletePnd",
"/gosdn.rbac.UserService/CreateUsers",
"/gosdn.rbac.UserService/GetUser",
"/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