gotosocial/internal/api/client/admin
Vyr Cossont fd837776e2
[feature] Implement Mastodon-compatible roles (#3136)
* Implement Mastodon-compatible roles

- `Account.role` should only be available through verify_credentials for checking current user's permissions
- `Account.role` now carries a Mastodon-compatible permissions bitmap and a marker for whether it should be shown to the public
- `Account.roles` added for *public* display roles (undocumented but stable since Mastodon 4.1)
- Web template now uses only public display roles (no user-visible change here, we already special-cased the `user` role)

* Handle verify_credentials case for default role

* Update JSON exact-match tests

* Address review comments

* Add blocks bit to admin permissions bitmap
2024-07-31 09:26:09 -07:00
..
accountaction.go [feature/frontend] Reports frontend v2 (#3022) 2024-06-18 18:18:00 +02:00
accountapprove.go [feature] Self-serve email change for users (#2957) 2024-06-06 14:43:25 +01:00
accountget.go
accountreject.go [feature] Self-serve email change for users (#2957) 2024-06-06 14:43:25 +01:00
accountsgetv1.go
accountsgetv2_test.go [feature] Implement Mastodon-compatible roles (#3136) 2024-07-31 09:26:09 -07:00
accountsgetv2.go
admin_test.go [feature] Debug admin endpoint to clear caches (#2940) 2024-05-29 12:56:17 +02:00
admin.go [feature/frontend] Reports frontend v2 (#3022) 2024-06-18 18:18:00 +02:00
debug_off.go [feature] Debug admin endpoint to clear caches (#2940) 2024-05-29 12:56:17 +02:00
debug_on.go [feature] Debug admin endpoint to clear caches (#2940) 2024-05-29 12:56:17 +02:00
domainallowcreate.go
domainallowdelete.go
domainallowget.go
domainallowsget.go
domainblockcreate.go
domainblockdelete.go
domainblockget.go
domainblocksget.go
domainkeysexpire.go
domainpermission.go
emailtest.go [feature/frontend] Let admins send test email to validate SMTP config (#2934) 2024-05-27 17:03:54 +00:00
emojicategoriesget_test.go
emojicategoriesget.go
emojicreate_test.go [feature] support processing of (many) more media types (#3090) 2024-07-12 09:39:47 +00:00
emojicreate.go
emojidelete_test.go [feature] support processing of (many) more media types (#3090) 2024-07-12 09:39:47 +00:00
emojidelete.go [feature/frontend] Reports frontend v2 (#3022) 2024-06-18 18:18:00 +02:00
emojiget_test.go [feature] support processing of (many) more media types (#3090) 2024-07-12 09:39:47 +00:00
emojiget.go [feature/frontend] Reports frontend v2 (#3022) 2024-06-18 18:18:00 +02:00
emojisget_test.go
emojisget.go [feature/frontend] Reports frontend v2 (#3022) 2024-06-18 18:18:00 +02:00
emojiupdate_test.go [feature] support processing of (many) more media types (#3090) 2024-07-12 09:39:47 +00:00
emojiupdate.go [feature/frontend] Reports frontend v2 (#3022) 2024-06-18 18:18:00 +02:00
headerfilter_create.go
headerfilter_delete.go
headerfilter_get.go
headerfilter.go
mediacleanup_test.go
mediacleanup.go
mediarefetch.go
reportget.go [feature/frontend] Reports frontend v2 (#3022) 2024-06-18 18:18:00 +02:00
reportresolve_test.go [feature/frontend] Reports frontend v2 (#3022) 2024-06-18 18:18:00 +02:00
reportresolve.go [feature/frontend] Reports frontend v2 (#3022) 2024-06-18 18:18:00 +02:00
reportsget_test.go [feature] Implement Mastodon-compatible roles (#3136) 2024-07-31 09:26:09 -07:00
reportsget.go [feature/frontend] Reports frontend v2 (#3022) 2024-06-18 18:18:00 +02:00
rulecreate.go
ruledelete.go [feature/frontend] Reports frontend v2 (#3022) 2024-06-18 18:18:00 +02:00
ruleget.go [feature/frontend] Reports frontend v2 (#3022) 2024-06-18 18:18:00 +02:00
rulesget.go
ruleupdate.go [feature/frontend] Reports frontend v2 (#3022) 2024-06-18 18:18:00 +02:00