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

[OCCHAB] Hide button if a user does not have the required right #2942

Merged
merged 3 commits into from
Mar 8, 2024

Conversation

jacquesfize
Copy link
Contributor

@jacquesfize jacquesfize commented Mar 1, 2024

As of today, list of stations in Occhab shows every actions buttons though the user may not have the right to run the latters.

This PR propose a fix to this issue.

Résultat :
Avec droits d'édition et de supression:
admin_occhab_btn

Sans droits d'édition et de supression:
user_restriced_occhab_btn

Copy link

codecov bot commented Mar 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.50%. Comparing base (ec1f160) to head (4ffb264).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #2942   +/-   ##
========================================
  Coverage    78.50%   78.50%           
========================================
  Files           89       89           
  Lines         7208     7208           
========================================
  Hits          5659     5659           
  Misses        1549     1549           
Flag Coverage Δ
pytest 78.50% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jacquesfize jacquesfize added this to the 2.14.1 milestone Mar 8, 2024
@jacquesfize jacquesfize self-assigned this Mar 8, 2024
@jacquesfize jacquesfize merged commit c4a8e24 into develop Mar 8, 2024
9 checks passed
@jacquesfize jacquesfize deleted the feat/occhab_list_button branch March 8, 2024 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant