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
i.e. if an admin goes to https://hslmembers.netlify.app/certs/1 it works, but if a non-admin goes there it throws an error in members_api and causes a crash in members_ui on line 99 of cert_detail.js (const { name, description } = await this.props.read(id); which loads /certs/{id})
Possible fixes include:
expanding the {auth.isAdmin} logic to preclude line 99 from running, not just hiding the edit form
allowing members_api to show cert details, just deny PUT/POST/DELETE on a cert
not displaying links to the cert details page for non-admins
The text was updated successfully, but these errors were encountered:
i.e. if an admin goes to https://hslmembers.netlify.app/certs/1 it works, but if a non-admin goes there it throws an error in members_api and causes a crash in members_ui on line 99 of cert_detail.js (
const { name, description } = await this.props.read(id);
which loads /certs/{id})Possible fixes include:
{auth.isAdmin}
logic to preclude line 99 from running, not just hiding the edit formThe text was updated successfully, but these errors were encountered: