Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

VAR-325 | Change createIsStaffSelector to respect manager role #1118

Merged
merged 1 commit into from
Feb 18, 2020

Conversation

Jokinen
Copy link
Contributor

@Jokinen Jokinen commented Feb 18, 2020

The createIsStaffSelector will now build a selector that will return
true when the user has the unit manager role for the resource given as
a parameter.

The manager and admin roles should, at least for now, have the exact
same permission within this UI. As the permission system is not
centralized anywhere else, this selector is the easiest place in the
code to synchronize these permissions.

The createIsStaffSelector will now build a selector that will return
true when the user has the unit manager role for the resource given as
a parameter.

The manager and admin roles should, at least for now, have the exact
same permission within this UI. As the permission system is not
centralized anywhere else, this selector is the easiest place in the
code to synchronize these permissions.
@Jokinen Jokinen changed the title Change createIsStaffSelector to respect manager role VAR-325 | Change createIsStaffSelector to respect manager role Feb 18, 2020
@codecov-io
Copy link

codecov-io commented Feb 18, 2020

Codecov Report

Merging #1118 into develop will increase coverage by 0.04%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #1118      +/-   ##
===========================================
+ Coverage    74.44%   74.49%   +0.04%     
===========================================
  Files          260      260              
  Lines         4136     4144       +8     
  Branches       704      706       +2     
===========================================
+ Hits          3079     3087       +8     
  Misses         902      902              
  Partials       155      155
Impacted Files Coverage Δ
app/state/selectors/authSelectors.js 100% <100%> (ø) ⬆️
src/domain/search/sort/SearchSort.js 87.5% <0%> (+12.5%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 37d18d2...f327ccf. Read the comment docs.

Copy link
Contributor

@tuovinensanttu tuovinensanttu left a comment

Choose a reason for hiding this comment

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

Looks good 👍

@Jokinen Jokinen merged commit 6ae828a into develop Feb 18, 2020
@Jokinen Jokinen deleted the feature/manager-permissions branch February 18, 2020 09:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants