Skip to content

Commit

Permalink
Allow users can edit external exercise if having update permission (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
KoWeiJAC authored Apr 16, 2024
1 parent 0cecf65 commit 2c3ce5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/Exercise/Externals/View.vue
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@

<button
v-if="!isPublished && hasPermissions([
PERMISSIONS.exercises.permissions.canPublishExercise.value
PERMISSIONS.exercises.permissions.canUpdateExercises.value
])"
:disabled="!canPublish"
class="govuk-button govuk-button--secondary"
Expand All @@ -447,7 +447,7 @@
</button>
<button
v-if="isPublished && hasPermissions([
PERMISSIONS.exercises.permissions.canPublishExercise.value
PERMISSIONS.exercises.permissions.canUpdateExercises.value
])"
class="govuk-button govuk-button--secondary"
@click="unPublish"
Expand Down

0 comments on commit 2c3ce5a

Please sign in to comment.