mirror of https://github.com/JohnHammond/CTFd.git
Set UserStatistics route to be admins_only (#1276)
* Set UserStatistics route to be admins_onlybulk-clear-sessions
parent
1e86718232
commit
ae1c2ec50d
|
@ -8,6 +8,7 @@ from CTFd.utils.decorators import admins_only
|
|||
|
||||
@statistics_namespace.route("/users")
|
||||
class UserStatistics(Resource):
|
||||
@admins_only
|
||||
def get(self):
|
||||
registered = Users.query.count()
|
||||
confirmed = Users.query.filter_by(verified=True).count()
|
||||
|
|
Loading…
Reference in New Issue