-
Notifications
You must be signed in to change notification settings - Fork 1
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
BI-2152 - Experimental Collaborator Front-end Permissions #396
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
<router-link | ||
v-bind:to="{name: 'germplasm', params: {programId: activeProgram.id}}" | ||
:id="germplasmMenuId" | ||
v-if="$ability.can('access', 'Germplasm')" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is there a v-if
on this router-link
but not the others? You might consider standardizing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed.
e9955fe
to
b353317
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Side menu looks good, menu actions disabled looks good.
Description
BI-2152 - Experimental Collaborator Front-end Permissions
Changes made
Hide all menu items except for home, experiments and observations, BrAPI
AppAbility.ts
to correspond to options in the side-bar menu.ability.ts
add role permission list for experimentalcollaborator, also mad the roll permission list explicit for readonly.Restrict Manage Experiments menu
can('create', 'Collaborator');
to programadministrator and systemadministrator inability.ts
.ExperimentDetails.vue
to includethis.$ability.can('create', 'Collaborator')
.Dependencies
bi-api: develop branch
Testing
Expected result
The Side-bar Menu should have only three options:
Expected result
Checklist: