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
Currently the Tenancy manager that is in use, filters the objects to those that are within the organization(s) the user has view access to. This is intentional so as to enable multi-tenancy.
Details
The tenancy manager requires an option that can be passed as an attribute, that allows ALL items to be returned, regardless of the users organization.
This is required so that if an authenticated user tries to edit an item in a different organization the correct return can be created (normally HTTP/403). In addition, there are models that have database constraints (uniqueness) and this requires access to ALL items within the table so that validation can occur.
Without this option, any query made by a user will return items only for their organizations which has the potential to create errors that could be avoided (unique table constraint, etc.).
Note: By default the queryset should always return filtered to user orgs results
Links
0b362f0 Test case that can't be run due to this feature missing.
Requirements
Can query to fetch ALL table items
By default, the returned queryset is filtered.
The text was updated successfully, but these errors were encountered:
Currently the Tenancy manager that is in use, filters the objects to those that are within the organization(s) the user has
view
access to. This is intentional so as to enable multi-tenancy.Details
The tenancy manager requires an option that can be passed as an attribute, that allows ALL items to be returned, regardless of the users organization.
This is required so that if an authenticated user tries to edit an item in a different organization the correct return can be created (normally
HTTP/403
). In addition, there are models that have database constraints (uniqueness) and this requires access to ALL items within the table so that validation can occur.Without this option, any query made by a user will return items only for their organizations which has the potential to create errors that could be avoided (unique table constraint, etc.).
Note: By default the queryset should always return filtered to user orgs results
Links
Requirements
The text was updated successfully, but these errors were encountered: