Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
goSDN
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
danet
goSDN
Commits
5375777e
Commit
5375777e
authored
1 year ago
by
Malte Bauch
Browse files
Options
Downloads
Patches
Plain Diff
Update default admin role so it is possible to access the pnd routes
See merge request
!476
parent
3242db18
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!476
Update default admin role so it is possible to access the pnd routes
Pipeline
#151213
passed
1 year ago
Stage: build
Stage: test
Stage: analyze
Stage: integration-test
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
controller/controller.go
+4
-4
4 additions, 4 deletions
controller/controller.go
with
4 additions
and
4 deletions
controller/controller.go
+
4
−
4
View file @
5375777e
...
...
@@ -268,10 +268,10 @@ func ensureDefaultRoleExists() error {
if
adminRole
==
nil
{
err
:=
c
.
roleService
.
Add
(
rbacImpl
.
NewRole
(
uuid
.
New
(),
defaultAdminRoleName
,
"admin role"
,
[]
string
{
"/gosdn.
core.Core
Service/GetPnd"
,
"/gosdn.
core.Core
Service/GetPndList"
,
"/gosdn.
core.Core
Service/CreatePndList"
,
"/gosdn.
core.Core
Service/DeletePnd"
,
"/gosdn.
pnd.Pnd
Service/GetPnd"
,
"/gosdn.
pnd.Pnd
Service/GetPndList"
,
"/gosdn.
pnd.Pnd
Service/CreatePndList"
,
"/gosdn.
pnd.Pnd
Service/DeletePnd"
,
"/gosdn.rbac.UserService/CreateUsers"
,
"/gosdn.rbac.UserService/GetUser"
,
"/gosdn.rbac.UserService/GetUsers"
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment