Skip to content

Commit

Permalink
Fix docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
fowczarek committed Apr 26, 2024
1 parent 6aa15e7 commit 9afdd94
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions saleor/product/managers.py
Expand Up @@ -84,11 +84,14 @@ def visible_to_user(
For user without permission we require channel to be passed to determine which
products are visible to user.
For user with permission we can return:
- all products if channel is not passed to query.
- all products if the channel is not passed and the query is not limited
to the provided channel.
(channel=None, limited_channel_access=False)
- no products if channel is passed but it does not exist.
- no products if the channel is not passed and the query is limited
to the provided channel.
(channel=None, limited_channel_access=True)
- all products assigned to channel if channel is passed and exists.
- all products assigned to the channel if the channel is passed and
the query is limited to the provided channel.
(channel=Channel, limited_channel_access=True)
"""
from .models import ALL_PRODUCTS_PERMISSIONS, ProductChannelListing
Expand Down

0 comments on commit 9afdd94

Please sign in to comment.