Skip to content

Commit 354ea0f

Browse files
committed
small fix
1 parent ff1f6c9 commit 354ea0f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tkp_utils/tornado/handlers/register.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ def _get(self):
2323
if self.is_admin:
2424
with self.session() as session:
2525
self.write(ujson.dumps(session.query(self.user_sql_class).all()))
26+
else:
27+
self._set_401("Unauthorized to view all clients")
2628

2729
@tornado.gen.coroutine
2830
def post(self):

0 commit comments

Comments
 (0)