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

Bug fix/mpsk not member #773

Merged
merged 3 commits into from
Feb 23, 2025
Merged

Bug fix/mpsk not member #773

merged 3 commits into from
Feb 23, 2025

Conversation

agmes4
Copy link
Member

@agmes4 agmes4 commented Feb 9, 2025

Features

Fixes that now users can not add or create mpsk clients
fixed #772

@agmes4 agmes4 requested a review from lukasjuhrich February 9, 2025 14:24
Copy link

codecov bot commented Feb 9, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.90%. Comparing base (369d84d) to head (c7e8408).
Report is 6 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #773      +/-   ##
===========================================
+ Coverage    87.88%   87.90%   +0.01%     
===========================================
  Files          275      277       +2     
  Lines        16949    16993      +44     
===========================================
+ Hits         14895    14937      +42     
- Misses        2054     2056       +2     

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

@agmes4 agmes4 force-pushed the bug-fix/mpsk_not_member branch from 5c7d453 to 617b6c8 Compare February 9, 2025 14:54
@ibot3
Copy link
Member

ibot3 commented Feb 9, 2025

Please do not check for the member property. There are also users with network access that are not members.

So better check for the network_access property.

@agmes4
Copy link
Member Author

agmes4 commented Feb 9, 2025

I see the point but think that this api should just be usable when you are a member. So in case of legacy accounts its still possible to set them when they have wifi access.

@agmes4
Copy link
Member Author

agmes4 commented Feb 9, 2025

never mind looked it up they can login into sipa that was

checks that a user can add mpsk client has the property network access
otherwise it retruns a 412
added the test for not members mpsk
now its validated rather a user is a member and can add or change mpsk clients
@agmes4 agmes4 force-pushed the bug-fix/mpsk_not_member branch from 617b6c8 to c7e8408 Compare February 9, 2025 16:50
@agmes4 agmes4 requested a review from mabezi February 22, 2025 18:06
@agmes4 agmes4 merged commit 3ff0ea5 into develop Feb 23, 2025
8 checks passed
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.

No MPSK API for not users
3 participants