Commit Graph

9 Commits

Author SHA1 Message Date
Tobias Cudnik
723375b334 NET-152 enrollment keys for non admins (#2346)
* return 401 instead of 403

* fixed http.StatusForbidden

* Tagged build version (temp)

* Unauthorized_Err when applicable

* untagged version

* fixed PUT /api/users/networks/user1

* - expired token redirs to login
- added `/api/enrollment_keys` for non-admins
- unit test for enrollment keys for non-admins

* handle user perms in `/hosts`

* removed debug

* misc

* - support masteradmin
- return hosts with partial access

* added `ismaster` to middleware
2023-05-31 13:11:54 +05:30
0xdcarns
596de6b9e3 shortened name 2023-02-16 18:56:45 -05:00
0xdcarns
9078608bd1 fix initial map allocation 2023-02-16 15:13:40 -05:00
0xdcarns
607198d563 added host registration endpoint 2023-02-16 14:27:57 -05:00
walkerwmanuel
193ef6b6ed removed print lines 2023-02-16 11:08:43 -05:00
walkerwmanuel
8f8c4f1df0 Wrote test to test Enrolment Keys 2023-02-16 10:57:18 -05:00
walkerwmanuel
442b32e0d9 Wrote test to test Enrolment Keys 2023-02-16 10:56:13 -05:00
0xdcarns
0e5e34ef0c added try to use func and edited tests 2023-02-15 15:52:58 -05:00
0xdcarns
db4ea9faa4 completed crud unit tests 2023-02-15 15:27:26 -05:00