tgstation / tgstation-server-webpanel

React application for interacting with tgstation-server
GNU Affero General Public License v3.0
10 stars 11 forks source link

Delete Instance Permission Set button shows up even if you can't actually delete anything #144

Closed san7890 closed 1 year ago

san7890 commented 1 year ago

image

clicking it yields following error:

Webpanel Version: f45eed99b171a60e77e136ab5750897099efb5ec
Webpanel Mode: GITHUB
API Version: 9.10.1

Error Code: error.http.access_denied
Error Description: No description

Additional Information:
{"addon":{"void":true},"origin":{"data":"","status":403,"statusText":"","headers":{"alt-svc":"h3=\\":443\\"; ma=86400, h3-29=\\":443\\"; ma=86400","cache-control":"no-cache","cf-cache-status":"DYNAMIC","cf-ray":"7c7fd25cba7a1f25-DEN","content-length":"0","date":"Tue, 16 May 2023 01:24:33 GMT","priority":"u=1,i","server":"cloudflare","x-powered-by":"tgstation-server"},"config":{"url":"/InstancePermissionSet/11","method":"delete","headers":{"Accept":"application/json","Api":"Tgstation.Server.Api/9.10.1","Webpanel-Version":"f45eed99b171a60e77e136ab5750897099efb5ec","Instance":"1","Authorization":"*********"},"baseURL":"https://tgstation13.org/sysadmin/tgs/campbell/","transformRequest":[null],"transformResponse":[null],"timeout":0,"withCredentials":false,"xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN","maxContentLength":-1,"maxBodyLength":-1,"transitional":{"silentJSONParsing":true,"forcedJSONParsing":true,"clarifyTimeoutError":false}},"request":{}},"config":{"githubtoken":{"id":"config.githubtoken","type":"pwd","value":""},"apipath":{"id":"config.apipath","type":"str","value":"https://tgstation13.org/sysadmin/tgs/campbell/"},"jobpollinactive":{"id":"config.jobpollinactive","type":"num","value":15},"jobpollactive":{"id":"config.jobpollactive","type":"num","value":5},"jobswidgetdisplay":{"id":"config.jobswidgetdisplay","type":"enum","possibleValues":{"ALWAYS":"always","AUTO":"auto","NEVER":"never"},"value":"auto"},"instanceprobetimer":{"id":"config.instanceprobetimer","type":"num","value":60},"itemsperpage":{"id":"config.itemsperpage","type":"num","value":25,"min":1,"max":100},"instanceeditsidebar":{"id":"config.instanceeditsidebar","type":"enum","possibleValues":{"AUTO":"auto","COLLAPSE":"collapse","EXPAND":"expand"},"value":"auto"},"showjson":{"id":"config.showjson","type":"bool","value":false},"manualpr":{"id":"config.manualpr","type":"bool","value":true}},"stack":"Error\\n    at new d (https://tgstation.github.io/tgstation-server-webpanel/api/9.10.1/607.e147c208af808d5f3dbe.bundle.js:1:47861)\\n    at Object.onRejected (https://tgstation.github.io/tgstation-server-webpanel/api/9.10.1/607.e147c208af808d5f3dbe.bundle.js:1:14330)\\n    at https://tgstation.github.io/tgstation-server-webpanel/api/9.10.1/607.e147c208af808d5f3dbe.bundle.js:1:16257\\n    at async o.deleteInstancePermissionSet (https://tgstation.github.io/tgstation-server-webpanel/api/9.10.1/607.e147c208af808d5f3dbe.bundle.js:1:10254)\\n    at async N.deletePermissionSet (https://tgstation.github.io/tgstation-server-webpanel/webpanel/4.20.0/345.4d0695ab65a4671c6dcf.bundle.js:1:4297)"}

what did i expect to happen? i think the button shouldn't be there