Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch from system admin to granular permission for admin menu in datasets #97

Open
fguitton opened this issue Jul 3, 2020 · 0 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request WP5 Platform Development
Milestone

Comments

@fguitton
Copy link
Member

fguitton commented Jul 3, 2020

A change was introduced in 2caa29d which requires to be reverted once the permission system is reviewed and permits hiding menu items more granularly.

This joins up the effort of dsi-icl/acacia#577

<Query<any, any> query={WHO_AM_I}>
{({ loading, error, data }) => {
if (loading) return <LoadSpinner />;
if (error) return <p>{error.toString()}</p>;
if (data.whoAmI.type === userTypes.ADMIN)
return (
<NavLink to={`/datasets/${studyId}/admin`} activeClassName={css.active}>ADMINISTRATION</NavLink>
);
return null;
}}
</Query>

@fguitton fguitton added bug Something isn't working enhancement New feature or request WP5 Platform Development labels Jul 3, 2020
@fguitton fguitton added this to the v1.x milestone Jul 8, 2020
@fguitton fguitton assigned fguitton and sou-chon and unassigned fguitton Jul 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request WP5 Platform Development
Projects
None yet
Development

No branches or pull requests

2 participants