bcgov / nr-forests-access-management

Authorization solution for BC natural resource sector
Apache License 2.0
8 stars 2 forks source link

feat: #1425 add backend endpoint checks for bceid user accept terms and conditions #1463

Closed ianliuwk1019 closed 3 months ago

ianliuwk1019 commented 3 months ago
MCatherine1994 commented 3 months ago

Hi Ian, it looks good, thanks so much! Just one thing, I wonder since we already have the requester.is_delegated_admin, maybe we don't need this check anymore, to check if is external delegated admin, we could just use requester.user_type_code and requester.is_delegated_admin? so we can delete that is_requester_external_delegated_admin method

Screen Shot 2024-06-25 at 3 04 01 PM
ianliuwk1019 commented 3 months ago

Hi Ian, it looks good, thanks so much! Just one thing, I wonder since we already have the requester.is_delegated_admin, maybe we don't need this check anymore, to check if is external delegated admin, we could just use requester.user_type_code and requester.is_delegated_admin? so we can delete that is_requester_external_delegated_admin method Screen Shot 2024-06-25 at 3 04 01 PM

Thanks for the find! I missed that one. Will do the adjustment.

sonarcloud[bot] commented 3 months ago

Quality Gate Passed Quality Gate passed for 'nr-forests-access-management_admin'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud