You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expand `.for_user()` to accept `resource=` parameter and return only the
notifications attached to that resource only if the user has permissions over
it. Otherwise, return an empty queryset.
Closes#11082
Related #11113
* Notifications: show them based on permissions
Expand `.for_user()` to accept `resource=` parameter and return only the
notifications attached to that resource only if the user has permissions over
it. Otherwise, return an empty queryset.
Closes#11082
Related #11113
* Minor docstring change
* Keep APIv3 behavior
* Fix tests
* Make the `resource=` argument required
We are always displaying all notifications to users, but we should only show not
cancelled
ordismissed
:readthedocs.org/readthedocs/templates/core/project_bar_base.html
Lines 37 to 41 in 8eda981
We should probably create a QuerySet method for this called
display
orshow
so we call asproject.notifications.display()
.The text was updated successfully, but these errors were encountered: