Commit Graph

8 Commits

Author SHA1 Message Date
Morgan Bazalgette
8ebe5f6a02
Require client to specify explicitly in websockets whether restricted users should be seen
This is only allowed to those having the user privilege AdminPrivilegeManageUsers, having being identified by the API AND having sent a message of type set_restricted_visibility stating specifically in the data that they want to get info also about restricted users.
This also includes some more information in the new_scores, such as the username and userid of the user who submitted the score.
2017-07-25 14:49:14 +02:00
Howl
e4d27f8d6b Allow users with AdminManageUsers to see banned users
Also:
- General code refactoring
- Allow banned/restricted users to see their scores etc
- common.MethodData now contains UserPrivileges
- UserPrivileges have now their own type
- Implement md.HasQuery, to know if there's a GET querystring parameter or not
2016-08-27 12:04:12 +02:00
Howl
0a870ee742 Remove read privilege. Public data is now readable by everyone without having to pass an API token. Feel free to test around as much as you like! 2016-07-06 14:22:43 +02:00
Howl
fcdd042d6c Finish up with new ranks and stuff on the API 2016-07-04 00:06:23 +02:00
Howl
3782ed3c7c beatmap ranking in API 2016-04-27 20:03:06 +02:00
Howl
ed2778e2cc Graceful restart! 2016-04-07 19:32:48 +02:00
Howl
d02f3f9951 Add token creation (login) 2016-04-05 22:22:13 +02:00
Howl
3ddab1de15 Initial commit 2016-04-03 19:59:27 +02:00