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
The @can_{read|edit|delete}_resource_instance decorators silently pass if the decorated function has arguments that don't exactly match "resourceid", e.g. "resourceinstanceid":
Suggest we throw some kind of helpful error to avoid usage mistakes.
Also suggest auditing views in core arches that use this decorator, as it appears some of them may not be using the resourceid param even if present, with the result that the decorator has no effect.
The text was updated successfully, but these errors were encountered:
The
@can_{read|edit|delete}_resource_instance
decorators silently pass if the decorated function has arguments that don't exactly match "resourceid", e.g. "resourceinstanceid":arches/arches/app/utils/decorators.py
Line 122 in 3a7ef78
Suggest we throw some kind of helpful error to avoid usage mistakes.
Also suggest auditing views in core arches that use this decorator, as it appears some of them may not be using the resourceid param even if present, with the result that the decorator has no effect.
The text was updated successfully, but these errors were encountered: