Allow "Read" Role to Edit Favorite Notifications
As mentioned in issue #927, normal users cannot set notifications for their favorite studios and performers. This PR remedies the issue by adding a second API call updateFavoriteNotificationSubscriptions requiring only the READ role. In the backend, a check is performed, such that indeed only the favorite notifications can be edited (other notifications are filtered out and cannot be set via the call).
They are not "admin" notifications. They require EDIT role to use. Using admin terminology makes no sense.
You are right. I changed it from admin to editor. Do you like this better or do you have another proposal?
I fixed the failing pipeline.
@DogmaDragon Do you agree with the renaming from admin to editor subscriptions?
That sounds better to me, but @InfiniteStash has the final say.
@InfiniteStash what are your thoughts on this PR?
@InfiniteStash what are your thoughts on this PR?
Hey, thanks for the PR.
I would prefer just using the existing mutation and changing it to READ permission. Having multiple mutations for the same thing is more work to maintain. We can change the mutation to filter the notifications on the backend and only persist favorites notifications for anyone without edit perms, and similarly only show favorite notifications on the frontend for anyone missing edit.
Perfect, will do :)
@InfiniteStash @DogmaDragon I have created a second proposal in Allow "Read" Role to Edit Favorite Notifications.