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

PCHR-2395: Fix sick leave request #2001

Merged
merged 2 commits into from
Jul 14, 2017

Conversation

igorpavlov-zz
Copy link
Contributor

@igorpavlov-zz igorpavlov-zz commented Jul 13, 2017

Overview

When admin/manager record sick request for themselves, they are able to select checkboxes. This PR fixed this issue.

Before

1

After

2

Technical Details

To the $ctrl.isRole('staff') condition was added $ctrl.isSelfRecord condition introduced in #1999

Comments

No tests required for this local change.

Copy link
Contributor

@AkA84 AkA84 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[7:36 PM] we should still check for the role though
[7:36 PM] only admin and managers can use those checkboxes
[7:36 PM] it's not possible (currently), but by that logic it would mean that a staff memeber could use them if he opened someone else's request

@igorpavlov-zz igorpavlov-zz force-pushed the PCHR-2395-fix-self-sick-leave-request branch from 929e5ee to 071d5e2 Compare July 14, 2017 08:43
@igorpavlov-zz igorpavlov-zz merged commit 5ba40cf into la-milestone-3 Jul 14, 2017
@igorpavlov-zz igorpavlov-zz deleted the PCHR-2395-fix-self-sick-leave-request branch July 14, 2017 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants