Commit Graph

17 Commits

Author SHA1 Message Date
Alicia bd1b959836 adaq 2019-02-25 21:04:55 +00:00
Alicia 5fc84bd914 fix schiavo error and changing rippleapi to api 2019-02-23 13:11:47 +00:00
Alicia 5b78c99b04 Allow import straight from github 2019-02-23 13:09:10 +00:00
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
Morgan Bazalgette 1136738111
Implement bearer tokens 2017-06-17 18:11:10 +02:00
Morgan Bazalgette 41ee4c90b3 Move from git.zxq.co to zxq.co 2017-01-14 18:06:16 +01:00
Morgan Bazalgette 62612cfdb8 Allow for searching user by email for users with ManageUser 2016-12-12 21:35:18 +01:00
Howl 256f082340 update last_updated when calling the API with a token 2016-12-01 23:16:36 +01: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 346f26177c Change all references to sql.DB to references to sqlx.DB 2016-08-15 13:45:42 +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 cbcfacb06a Fix misplaced if 2016-06-16 13:14:19 +02:00
Howl fc38503bdd add GET /tokens/self 2016-06-14 12:01:30 +02:00
Howl a939d15779 Force private API keys to have Privileges write, read, read confidential 2016-05-15 07:20:11 +02:00
Howl 32029d963e We git.zxq.co now 2016-04-19 16:07:27 +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