Skip to content

Commit

Permalink
fix(frontend): only query own absences
Browse files Browse the repository at this point in the history
  • Loading branch information
c0rydoras committed Aug 12, 2024
1 parent 0e173d9 commit 07d91ea
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/app/index/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,10 @@ export default class IndexController extends Controller {
to_date: to.format("YYYY-MM-DD"),
};

const absences = yield this.store.query("absence", params);
const absences = yield this.store.query("absence", {
...params,
user: this.currentUser.user.id,
});

const publicHolidays = yield this.store.query("public-holiday", {
...params,
Expand Down

0 comments on commit 07d91ea

Please sign in to comment.