Skip to content

Commit

Permalink
fix(permissions): Fix permissions endpoint (#30)
Browse files Browse the repository at this point in the history
* edit code for updating roles

* Fix some bug.

* Make Restful.

* Fic integration tests.

* some changes.

* Fix permissions.

---------

Co-authored-by: sadq <[email protected]>
  • Loading branch information
msmahdinejad and SwimmingRieux authored Aug 21, 2024
1 parent fb97475 commit f8db2ab
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions RelationAnalysis.Migrations/InitialRecordsCreator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,19 @@ public async Task AddInitialRecords()
{
Name = "Admin",
Permissions =
"[\"/api/Access/GetPermissions\",\"/api/Admin/GetUser/{id}\",\"/api/Admin/GetAllUser\",\"/api/Admin/GetAllRoles\",\"/api/Admin/UpdateUser/{id}\",\"/api/Admin/UpdatePassword/{id}\",\"/api/Admin/DeleteUser/{id}\",\"/api/Admin/CreateUser\",\"/api/Admin/UpdateRoles/{id}\",\"/api/Auth/Login\", \"/api/User/GetUser\",\"/api/User/UpdateUser\",\"/api/User/UpdatePassword\",\"/api/User/Logout\"]",
"[\"/api/Admin\",\"/api/Auth\", \"/api/User\", \"/api/Edge\", \"/api/Graph\", \"/api/Node\"]",
Id = 1
},
new Role()
{
Name = "DataAdmin",
Permissions =
"[\"/api/Access/GetPermissions\",\"/api/Auth/Login\",\"/api/User/GetUser\",\"/api/User/UpdateUser\",\"/api/User/UpdatePassword\",\"/api/User/Logout\"]",
Permissions = "[\"/api/Auth\", \"/api/User\", \"/api/Edge\", \"/api/Graph\", \"/api/Node\"]",
Id = 2
},
new Role()
{
Name = "DataAnalyst",
Permissions =
"[\"/api/Access/GetPermissions\",\"/api/Auth/Login\",\"/api/User/GetUser\",\"/api/User/UpdateUser\",\"/api/User/UpdatePassword\",\"/api/User/Logout\"]",
Permissions = "[\"/api/Auth\", \"/api/User\", \"/api/Edge\", \"/api/Graph\", \"/api/Node\"]",
Id = 3
}
};
Expand Down

0 comments on commit f8db2ab

Please sign in to comment.