The original code allowed access only if the logged-in user was a Member. By using an OR condition, access for both Member and Secretary roles can be granted.
The issue was caused by checking if the user was not a Member OR not a Secretary, resulting in denial of access. The solution was to check if they are not either.
Collection
[
|
...
]