Skip to content

Commit

Permalink
Adding a condition to retrieve office user only if admin
Browse files Browse the repository at this point in the history
  • Loading branch information
maayarosama committed Apr 23, 2024
1 parent 7a42208 commit 03e0599
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/src/components/requests/leaveRequest.vue
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,9 @@ export default {
endDateField.value.validate()
userId.value = user.value?.fullUser.id
balance.execute()
concatUsers()
if(user.value?.fullUser.user_type === 'Admin'){
concatUsers()
}
})
const reloadMore = computed(() => {
if (page.value === count.value) {
Expand Down

0 comments on commit 03e0599

Please sign in to comment.