Skip to content

Commit

Permalink
Fix print count auth
Browse files Browse the repository at this point in the history
  • Loading branch information
veniware committed Jul 6, 2024
1 parent 90aea0e commit d37fce8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions Protest/Http/Auth.cs
Original file line number Diff line number Diff line change
Expand Up @@ -226,13 +226,13 @@ private static HashSet<string> PopulateAccessPath(string[] accessList) {
path.Add("/fetch/networkinfo");
path.Add("/fetch/singledevice");
path.Add("/fetch/singleuser");
path.Add("/fetch/status");
path.Add("/fetch/devices");
path.Add("/fetch/users");
path.Add("/fetch/import");
path.Add("/fetch/status");
path.Add("/fetch/approve");
path.Add("/fetch/abort");
path.Add("/fetch/discard");
path.Add("/fetch/import");
break;

case "manage hosts:write":
Expand All @@ -247,6 +247,7 @@ private static HashSet<string> PopulateAccessPath(string[] accessList) {
path.Add("/lifeline/memory/view");
path.Add("/lifeline/disk/view");
path.Add("/lifeline/diskusage/view");
path.Add("/lifeline/printcount/view");
path.Add("/ws/livestats/device");
path.Add("/ws/monitor");
break;
Expand Down Expand Up @@ -309,8 +310,8 @@ private static HashSet<string> PopulateAccessPath(string[] accessList) {
path.Add("/tools/ntp");
path.Add("/tools/locateip");
path.Add("/tools/maclookup");
path.Add("/tools/downstream");
path.Add("/tools/upstream");
//path.Add("/tools/downstream");
//path.Add("/tools/upstream");
path.Add("/ws/ping");
path.Add("/ws/dhcp");
path.Add("/ws/portscan");
Expand Down
2 changes: 1 addition & 1 deletion Protest/Http/Listener.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ private static readonly Dictionary<string, Func<HttpListenerContext, Dictionary<
{ "/db/gandalf", (ctx, parameters, username) => Tools.PasswordStrength.GandalfThreadWrapper(ctx, username) },

{ "/fetch/networkinfo", (ctx, parameters, username) => Protocols.Kerberos.NetworkInfo() },
{ "/fetch/status", (ctx, parameters, username) => Tasks.Fetch.Status() },
{ "/fetch/singledevice", (ctx, parameters, username) => Tasks.Fetch.SingleDeviceSerialize(parameters, true) },
{ "/fetch/singleuser", (ctx, parameters, username) => Tasks.Fetch.SingleUserSerialize(parameters) },
{ "/fetch/status", (ctx, parameters, username) => Tasks.Fetch.Status() },
{ "/fetch/devices", (ctx, parameters, username) => Tasks.Fetch.DevicesTask(ctx, parameters, username) },
{ "/fetch/users", (ctx, parameters, username) => Tasks.Fetch.UsersTask(parameters, username) },
{ "/fetch/approve", (ctx, parameters, username) => Tasks.Fetch.ApproveLastTask(parameters, username) },
Expand Down

0 comments on commit d37fce8

Please sign in to comment.