Skip to content

Commit

Permalink
API permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
veniware committed Oct 2, 2024
1 parent 8d9ef67 commit a89c826
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Protest/Front/rbac.js
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ class AccessControl extends Tabs {
const json = await response.json();
if (json.error) throw(json.error);

for (let i = 0; i < json.length; i++) {
for (let i=0; i<json.length; i++) {
this.AddUser(json[i].username, json[i].domain, "", json[i].alias, json[i].color, json[i].isDomain, json[i].authorization);
}
}
Expand Down
4 changes: 2 additions & 2 deletions Protest/Front/ui.css
Original file line number Diff line number Diff line change
Expand Up @@ -520,13 +520,13 @@

@keyframes half-rotate-cw {
0% { transform-origin: 50% 50%; }
50% { transform-origin: 50% 50%; transform: rotate(60deg); }
50% { transform-origin: 50% 50%; transform: rotate(45deg); }
100% { transform-origin: 50% 50%; }
}

@keyframes half-rotate-ccw {
0% { transform-origin: 50% 50%; }
50% { transform-origin: 50% 50%; transform: rotate(-60deg); }
50% { transform-origin: 50% 50%; transform: rotate(-45deg); }
100% { transform-origin: 50% 50%; }
}

Expand Down
5 changes: 2 additions & 3 deletions Protest/Http/Auth.cs
Original file line number Diff line number Diff line change
Expand Up @@ -363,10 +363,9 @@ private static HashSet<string> PopulateAccessPath(string[] accessList) {
path.Add("/tasks/stop");
break;

case "api:write":
case "api links:write":
path.Add("/api/list");
path.Add("/api/create");
path.Add("/api/delete");
path.Add("/api/save");
break;

case "rbac:write":
Expand Down

0 comments on commit a89c826

Please sign in to comment.