mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-05 21:37:55 +00:00
[WIP] feat: scoped api keys
This commit is contained in:
parent
e7ee593a85
commit
06cb160f95
45 changed files with 1264 additions and 154 deletions
|
|
@ -21,7 +21,7 @@ public class GroupControllerV2: PKControllerBase
|
|||
|
||||
var ctx = ContextFor(system);
|
||||
|
||||
if (!system.GroupListPrivacy.CanAccess(ContextFor(system)))
|
||||
if (!IsAuthenticatedAs(system.Id) && !system.GroupListPrivacy.CanAccess(ContextFor(system)))
|
||||
throw Errors.UnauthorizedGroupList;
|
||||
|
||||
var groups = _repo.GetSystemGroups(system.Id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue