Updated stop.ts
updated stop.ts so it checks for user rights instead of the SYSTEM flag which can possibly cause some unnecessary complications when it comes to instance management

*also has been tested with multiple tokens to be sure that this does NOT permit normal users to POST to the /stop API route
**NOTE**: instance owners will have to re-run `npm run setup` for these changes to take effect
1 parent 78b33a8 commit a57182357d57bd92e788f5ec9039b14b452bb7dc
@unknownPerson115 unknownPerson115 authored on 27 Dec 2021
Erkin Alp Güney committed on 29 Dec 2021
Showing 1 changed file
View
api/src/routes/stop.ts