mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 12:59:17 +02:00
Ensure follower is approved to access library
This commit is contained in:
parent
899ba31162
commit
c17f7eefde
2 changed files with 18 additions and 2 deletions
|
@ -16,4 +16,5 @@ class LibraryFollower(BasePermission):
|
|||
return False
|
||||
|
||||
library = actors.SYSTEM_ACTORS['library'].get_actor_instance()
|
||||
return library.followers.filter(url=actor.url).exists()
|
||||
return library.received_follows.filter(
|
||||
approved=True, actor=actor).exists()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue